This notebook will demonstrate the use of a neural network to classify face images. The classifier will attempt to distinguish between faces turning left and faces turning right. We will vary the number of nodes in the hidden layer to examine the effect on performance.
First we load the appropriate libraries:
library(pixmap)
library(gdata)
gdata: Unable to locate valid perl interpreter
gdata:
gdata: read.xls() will be unable to read Excel XLS and XLSX files
gdata: unless the 'perl=' argument is used to specify the location of a
gdata: valid perl intrpreter.
gdata:
gdata: (To avoid display of this message in the future, please ensure
gdata: perl is installed and available on the executable search path.)
gdata: Unable to load perl libaries needed by read.xls()
gdata: to support 'XLX' (Excel 97-2004) files.
gdata: Unable to load perl libaries needed by read.xls()
gdata: to support 'XLSX' (Excel 2007+) files.
gdata: Run the function 'installXLSXsupport()'
gdata: to automatically download and install the perl
gdata: libaries needed to support Excel XLS and XLSX formats.
Attaching package: 'gdata'
The following object is masked from 'package:stats':
nobs
The following object is masked from 'package:utils':
object.size
The following object is masked from 'package:base':
startsWith
Here are examples of the face data:
left1<-read.pnm(file="Homework 4 Face Dataset/Left/left1.pgm")
plot(left1)
Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"
right1<-read.pnm(file="Homework 4 Face Dataset/Right/right1.pgm")
plot(right1)
Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"
Next we train the network. We will randomize the data and then use 80% of it to train the neural network and 20% of it to test the data.
We first use the following function to load the data:
loadImages <- function(pathName,fileNames, clasLabel)
{
files<-list.files(path=pathName,pattern=fileNames,all.files=T,full.name=T,no..=T)
list_of_images=lapply(files,read.pnm)
plot(list_of_images[[1]])
n.images<-length(list_of_images)
image.matrix<-list_of_images[[1]]@grey
image.vector<-unmatrix(image.matrix,byrow=T)
for(ii in 2:n.images)
{
i.matrix<-list_of_images[[ii]]@grey
i.vector<-unmatrix(i.matrix,byrow=T)
image.vector<-rbind(image.vector,i.vector)
}
image.frame<-data.frame(image.vector)
n.rows<-nrow(image.frame)
class1.label<-rep(clasLabel,n.rows)
image.frame<-cbind(image.frame,class1.label)
return (image.frame)
}
left.frame <- loadImages("Homework 4 Face Dataset/Left", "left*.*", 0)
left.frame
Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"
| r1.c1 | r1.c2 | r1.c3 | r1.c4 | r1.c5 | r1.c6 | r1.c7 | r1.c8 | r1.c9 | r1.c10 | ... | r60.c56 | r60.c57 | r60.c58 | r60.c59 | r60.c60 | r60.c61 | r60.c62 | r60.c63 | r60.c64 | class1.label | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| image.vector | 0.10897436 | 0.006410256 | 0.05128205 | 0.37179487 | 0.21794872 | 0.1538462 | 0.1666667 | 0.1602564 | 0.3461538 | 0.3846154 | ... | 0.53205128 | 0.65384615 | 0.333333333 | 0.51282051 | 0.30769231 | 0.391025641 | 0.52564103 | 0.37820513 | 0.044871795 | 0 |
| i.vector | 0.20769231 | 0.200000000 | 0.20000000 | 0.19230769 | 0.18461538 | 0.1769231 | 0.1692308 | 0.1692308 | 0.1615385 | 0.1538462 | ... | 0.86923077 | 0.50000000 | 0.007692308 | 0.03076923 | 0.03846154 | 0.146153846 | 0.22307692 | 0.22307692 | 0.215384615 | 0 |
| i.vector.1 | 0.18852459 | 0.180327869 | 0.17213115 | 0.16393443 | 0.16393443 | 0.1557377 | 0.1557377 | 0.1475410 | 0.1393443 | 0.1311475 | ... | 0.90163934 | 0.90163934 | 0.901639344 | 0.90163934 | 0.70491803 | 0.188524590 | 0.22131148 | 0.21311475 | 0.204918033 | 0 |
| i.vector.2 | 0.20634921 | 0.198412698 | 0.19841270 | 0.19047619 | 0.18253968 | 0.1746032 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1587302 | ... | 0.92063492 | 0.61904762 | 0.023809524 | 0.03174603 | 0.03968254 | 0.142857143 | 0.22222222 | 0.21428571 | 0.214285714 | 0 |
| i.vector.3 | 0.17500000 | 0.175000000 | 0.16666667 | 0.16666667 | 0.15833333 | 0.1500000 | 0.1500000 | 0.1416667 | 0.1333333 | 0.1250000 | ... | 0.91666667 | 0.91666667 | 0.916666667 | 0.91666667 | 0.80833333 | 0.441666667 | 0.21666667 | 0.21666667 | 0.208333333 | 0 |
| i.vector.4 | 0.20000000 | 0.192000000 | 0.19200000 | 0.18400000 | 0.17600000 | 0.1680000 | 0.1680000 | 0.1600000 | 0.1520000 | 0.1440000 | ... | 0.88800000 | 0.50400000 | 0.000000000 | 0.02400000 | 0.04000000 | 0.136000000 | 0.21600000 | 0.21600000 | 0.208000000 | 0 |
| i.vector.5 | 0.19834711 | 0.190082645 | 0.18181818 | 0.17355372 | 0.17355372 | 0.1652893 | 0.1570248 | 0.1487603 | 0.1487603 | 0.1404959 | ... | 0.90909091 | 0.91735537 | 0.685950413 | 0.03305785 | 0.04132231 | 0.132231405 | 0.20661157 | 0.20661157 | 0.198347107 | 0 |
| i.vector.6 | 0.19841270 | 0.198412698 | 0.19047619 | 0.18253968 | 0.17460317 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1587302 | 0.1507937 | ... | 0.88888889 | 0.51587302 | 0.007936508 | 0.03174603 | 0.03968254 | 0.142857143 | 0.22222222 | 0.22222222 | 0.222222222 | 0 |
| i.vector.7 | 0.24161074 | 0.228187919 | 0.22147651 | 0.21476510 | 0.21476510 | 0.2080537 | 0.2013423 | 0.2013423 | 0.1946309 | 0.1879195 | ... | 0.26174497 | 0.26845638 | 0.268456376 | 0.26845638 | 0.26174497 | 0.261744966 | 0.26174497 | 0.25503356 | 0.241610738 | 0 |
| i.vector.8 | 0.21935484 | 0.212903226 | 0.21290323 | 0.20645161 | 0.20000000 | 0.1935484 | 0.1870968 | 0.1806452 | 0.1806452 | 0.1741935 | ... | 0.28387097 | 0.27741935 | 0.264516129 | 0.25161290 | 0.23870968 | 0.225806452 | 0.21290323 | 0.20645161 | 0.200000000 | 0 |
| i.vector.9 | 0.24324324 | 0.229729730 | 0.22297297 | 0.21621622 | 0.20945946 | 0.2094595 | 0.2027027 | 0.2027027 | 0.1959459 | 0.1891892 | ... | 0.25675676 | 0.26351351 | 0.263513514 | 0.26351351 | 0.26351351 | 0.263513514 | 0.25675676 | 0.25000000 | 0.236486486 | 0 |
| i.vector.10 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.00000000 | 0.0000000 | 0.0000000 | 0.0000000 | 0.0000000 | 0.0000000 | ... | 0.33544304 | 0.36075949 | 0.316455696 | 0.46835443 | 0.15822785 | 0.107594937 | 0.04430380 | 0.02531646 | 0.000000000 | 0 |
| i.vector.11 | 0.21935484 | 0.212903226 | 0.20645161 | 0.20645161 | 0.20000000 | 0.1935484 | 0.1870968 | 0.1806452 | 0.1741935 | 0.1677419 | ... | 0.28387097 | 0.27741935 | 0.264516129 | 0.25161290 | 0.23870968 | 0.225806452 | 0.21290323 | 0.20000000 | 0.200000000 | 0 |
| i.vector.12 | 0.22368421 | 0.217105263 | 0.21710526 | 0.21052632 | 0.21052632 | 0.2039474 | 0.1973684 | 0.1907895 | 0.1842105 | 0.1842105 | ... | 0.26315789 | 0.25657895 | 0.256578947 | 0.25657895 | 0.24342105 | 0.236842105 | 0.22368421 | 0.21052632 | 0.197368421 | 0 |
| i.vector.13 | 0.22580645 | 0.225806452 | 0.21935484 | 0.21290323 | 0.20645161 | 0.2000000 | 0.2000000 | 0.1870968 | 0.1870968 | 0.1806452 | ... | 0.28387097 | 0.27741935 | 0.264516129 | 0.25161290 | 0.23870968 | 0.225806452 | 0.21290323 | 0.20645161 | 0.193548387 | 0 |
| i.vector.14 | 0.24000000 | 0.226666667 | 0.22000000 | 0.21333333 | 0.21333333 | 0.2066667 | 0.2066667 | 0.1933333 | 0.1933333 | 0.1866667 | ... | 0.26000000 | 0.26000000 | 0.260000000 | 0.26666667 | 0.26666667 | 0.260000000 | 0.26000000 | 0.25333333 | 0.240000000 | 0 |
| i.vector.15 | 0.22580645 | 0.219354839 | 0.21290323 | 0.21290323 | 0.20645161 | 0.2064516 | 0.2000000 | 0.1935484 | 0.1870968 | 0.1741935 | ... | 0.28387097 | 0.27741935 | 0.264516129 | 0.25161290 | 0.23870968 | 0.225806452 | 0.21290323 | 0.20645161 | 0.193548387 | 0 |
| i.vector.16 | 0.20800000 | 0.200000000 | 0.20000000 | 0.18400000 | 0.17600000 | 0.1760000 | 0.1680000 | 0.1600000 | 0.1520000 | 0.1440000 | ... | 0.91200000 | 0.90400000 | 0.896000000 | 0.88000000 | 0.81600000 | 0.176000000 | 0.21600000 | 0.21600000 | 0.216000000 | 0 |
| i.vector.17 | 0.20800000 | 0.200000000 | 0.19200000 | 0.18400000 | 0.18400000 | 0.1760000 | 0.1680000 | 0.1600000 | 0.1600000 | 0.1520000 | ... | 0.90400000 | 0.91200000 | 0.904000000 | 0.92000000 | 0.46400000 | 0.168000000 | 0.22400000 | 0.21600000 | 0.216000000 | 0 |
| i.vector.18 | 0.20967742 | 0.209677419 | 0.20161290 | 0.19354839 | 0.18548387 | 0.1854839 | 0.1693548 | 0.1693548 | 0.1612903 | 0.1532258 | ... | 0.91129032 | 0.91129032 | 0.895161290 | 0.89516129 | 0.89516129 | 0.258064516 | 0.21774194 | 0.20967742 | 0.209677419 | 0 |
| i.vector.19 | 0.20800000 | 0.200000000 | 0.19200000 | 0.19200000 | 0.18400000 | 0.1760000 | 0.1680000 | 0.1680000 | 0.1600000 | 0.1520000 | ... | 0.91200000 | 0.90400000 | 0.904000000 | 0.91200000 | 0.54400000 | 0.160000000 | 0.22400000 | 0.21600000 | 0.216000000 | 0 |
| i.vector.20 | 0.20967742 | 0.193548387 | 0.19354839 | 0.17741935 | 0.16935484 | 0.1693548 | 0.1693548 | 0.1612903 | 0.1451613 | 0.1451613 | ... | 0.91129032 | 0.91129032 | 0.911290323 | 0.89516129 | 0.91129032 | 0.362903226 | 0.22580645 | 0.21774194 | 0.217741935 | 0 |
| i.vector.21 | 0.10897436 | 0.000000000 | 0.05128205 | 0.38461538 | 0.22435897 | 0.1538462 | 0.1730769 | 0.1666667 | 0.3525641 | 0.3974359 | ... | 0.73076923 | 0.51282051 | 0.282051282 | 0.30769231 | 0.35897436 | 0.410256410 | 0.20512821 | 0.03205128 | 0.006410256 | 0 |
| i.vector.22 | 0.20800000 | 0.208000000 | 0.20000000 | 0.19200000 | 0.18400000 | 0.1760000 | 0.1760000 | 0.1680000 | 0.1600000 | 0.1520000 | ... | 0.90400000 | 0.89600000 | 0.904000000 | 0.90400000 | 0.49600000 | 0.168000000 | 0.21600000 | 0.20800000 | 0.208000000 | 0 |
| i.vector.23 | 0.20161290 | 0.193548387 | 0.18548387 | 0.17741935 | 0.17741935 | 0.1693548 | 0.1612903 | 0.1612903 | 0.1532258 | 0.1451613 | ... | 0.91129032 | 0.91129032 | 0.911290323 | 0.88709677 | 0.90322581 | 0.435483871 | 0.21774194 | 0.21774194 | 0.209677419 | 0 |
| i.vector.24 | 0.20634921 | 0.198412698 | 0.19841270 | 0.19047619 | 0.18253968 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1507937 | 0.1507937 | ... | 0.88095238 | 0.90476190 | 0.880952381 | 0.89682540 | 0.61111111 | 0.158730159 | 0.21428571 | 0.20634921 | 0.206349206 | 0 |
| i.vector.25 | 0.21428571 | 0.293650794 | 0.24603175 | 0.23809524 | 0.23809524 | 0.2301587 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2142857 | ... | 0.84126984 | 0.83333333 | 0.785714286 | 0.36507937 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.26 | 0.08029197 | 0.080291971 | 0.08029197 | 0.08029197 | 0.09489051 | 0.1824818 | 0.2189781 | 0.2116788 | 0.2116788 | 0.2043796 | ... | 0.73722628 | 0.75182482 | 0.751824818 | 0.75182482 | 0.72262774 | 0.642335766 | 0.15328467 | 0.00000000 | 0.000000000 | 0 |
| i.vector.27 | 0.20634921 | 0.285714286 | 0.23809524 | 0.23809524 | 0.23015873 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2142857 | 0.2063492 | ... | 0.84126984 | 0.84126984 | 0.785714286 | 0.35714286 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.28 | 0.08759124 | 0.087591241 | 0.08759124 | 0.08759124 | 0.10218978 | 0.1897810 | 0.2189781 | 0.2116788 | 0.2116788 | 0.2116788 | ... | 0.72992701 | 0.73722628 | 0.744525547 | 0.74452555 | 0.71532847 | 0.627737226 | 0.15328467 | 0.00000000 | 0.000000000 | 0 |
| i.vector.29 | 0.21428571 | 0.293650794 | 0.24603175 | 0.23809524 | 0.23809524 | 0.2380952 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2222222 | ... | 0.84920635 | 0.84126984 | 0.793650794 | 0.37301587 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.30 | 0.07407407 | 0.074074074 | 0.07407407 | 0.08148148 | 0.08888889 | 0.1851852 | 0.2148148 | 0.2148148 | 0.2074074 | 0.2000000 | ... | 0.75555556 | 0.75555556 | 0.762962963 | 0.75555556 | 0.72592593 | 0.629629630 | 0.11851852 | 0.00000000 | 0.000000000 | 0 |
| i.vector.31 | 0.21600000 | 0.296000000 | 0.24800000 | 0.24800000 | 0.24000000 | 0.2400000 | 0.2400000 | 0.2320000 | 0.2320000 | 0.2240000 | ... | 0.86400000 | 0.84800000 | 0.808000000 | 0.44800000 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.32 | 0.11464968 | 0.006369427 | 0.06369427 | 0.40127389 | 0.22929936 | 0.1592357 | 0.1783439 | 0.1719745 | 0.3630573 | 0.4012739 | ... | 0.56050955 | 0.53503185 | 0.337579618 | 0.35031847 | 0.14012739 | 0.114649682 | 0.05095541 | 0.02547771 | 0.000000000 | 0 |
| i.vector.33 | 0.08759124 | 0.080291971 | 0.08029197 | 0.08759124 | 0.09489051 | 0.1897810 | 0.2262774 | 0.2189781 | 0.2189781 | 0.2116788 | ... | 0.73722628 | 0.74452555 | 0.751824818 | 0.74452555 | 0.71532847 | 0.620437956 | 0.11678832 | 0.00000000 | 0.000000000 | 0 |
| i.vector.34 | 0.02816901 | 0.260563380 | 0.20422535 | 0.20422535 | 0.19718310 | 0.1971831 | 0.1901408 | 0.1901408 | 0.1901408 | 0.1830986 | ... | 0.85211268 | 0.84507042 | 0.845070423 | 0.82394366 | 0.80281690 | 0.225352113 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.35 | 0.02962963 | 0.259259259 | 0.20000000 | 0.20000000 | 0.19259259 | 0.1925926 | 0.1925926 | 0.1851852 | 0.1851852 | 0.1777778 | ... | 0.89629630 | 0.88888889 | 0.896296296 | 0.88888889 | 0.85925926 | 0.785185185 | 0.08888889 | 0.00000000 | 0.000000000 | 0 |
| i.vector.36 | 0.02816901 | 0.267605634 | 0.21126761 | 0.21126761 | 0.20422535 | 0.1971831 | 0.2042254 | 0.1971831 | 0.1971831 | 0.1901408 | ... | 0.89436620 | 0.88732394 | 0.880281690 | 0.88028169 | 0.87323944 | 0.464788732 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.37 | 0.02222222 | 0.259259259 | 0.20000000 | 0.20000000 | 0.19259259 | 0.1925926 | 0.1925926 | 0.1925926 | 0.1851852 | 0.1851852 | ... | 0.90370370 | 0.90370370 | 0.896296296 | 0.89629630 | 0.88888889 | 0.822222222 | 0.13333333 | 0.00000000 | 0.000000000 | 0 |
| i.vector.38 | 0.02898551 | 0.268115942 | 0.20289855 | 0.21014493 | 0.20289855 | 0.2028986 | 0.1956522 | 0.1956522 | 0.1956522 | 0.1884058 | ... | 0.89855072 | 0.89130435 | 0.891304348 | 0.89130435 | 0.88405797 | 0.760869565 | 0.02173913 | 0.00000000 | 0.000000000 | 0 |
| i.vector.39 | 0.02222222 | 0.259259259 | 0.20000000 | 0.19259259 | 0.19259259 | 0.1851852 | 0.1851852 | 0.1851852 | 0.1851852 | 0.1777778 | ... | 0.88888889 | 0.88888889 | 0.881481481 | 0.88148148 | 0.88148148 | 0.837037037 | 0.32592593 | 0.00000000 | 0.000000000 | 0 |
| i.vector.40 | 0.02777778 | 0.263888889 | 0.20833333 | 0.20833333 | 0.20138889 | 0.2013889 | 0.2013889 | 0.1944444 | 0.1944444 | 0.1875000 | ... | 0.89583333 | 0.88888889 | 0.888888889 | 0.88194444 | 0.83333333 | 0.173611111 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.41 | 0.02205882 | 0.257352941 | 0.19117647 | 0.19117647 | 0.19117647 | 0.1911765 | 0.1838235 | 0.1838235 | 0.1838235 | 0.1764706 | ... | 0.88970588 | 0.88970588 | 0.889705882 | 0.88235294 | 0.85294118 | 0.764705882 | 0.07352941 | 0.00000000 | 0.000000000 | 0 |
| i.vector.42 | 0.26623377 | 0.259740260 | 0.25324675 | 0.24025974 | 0.23376623 | 0.2337662 | 0.2272727 | 0.2207792 | 0.2142857 | 0.2077922 | ... | 0.11038961 | 0.11038961 | 0.084415584 | 0.09740260 | 0.08441558 | 0.240259740 | 0.27922078 | 0.27272727 | 0.279220779 | 0 |
| i.vector.43 | 0.28846154 | 0.365384615 | 0.21794872 | 0.23076923 | 0.23717949 | 0.3012821 | 0.4230769 | 0.3717949 | 0.3205128 | 0.3012821 | ... | 0.16666667 | 0.07692308 | 0.128205128 | 0.07692308 | 0.02564103 | 0.006410256 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.44 | 0.27272727 | 0.259740260 | 0.25324675 | 0.24675325 | 0.24025974 | 0.2337662 | 0.2272727 | 0.2207792 | 0.2142857 | 0.2077922 | ... | 0.08441558 | 0.09740260 | 0.090909091 | 0.07142857 | 0.12337662 | 0.272727273 | 0.28571429 | 0.27922078 | 0.279220779 | 0 |
| i.vector.45 | 0.11464968 | 0.006369427 | 0.07006369 | 0.40764331 | 0.23566879 | 0.1656051 | 0.1847134 | 0.1783439 | 0.3757962 | 0.4140127 | ... | 0.34394904 | 0.51592357 | 0.535031847 | 0.30573248 | 0.29299363 | 0.114649682 | 0.05732484 | 0.03184713 | 0.000000000 | 0 |
| i.vector.46 | 0.10191083 | 0.006369427 | 0.05095541 | 0.37579618 | 0.21656051 | 0.1528662 | 0.1656051 | 0.1656051 | 0.3439490 | 0.3885350 | ... | 0.48407643 | 0.51592357 | 0.350318471 | 0.42038217 | 0.21656051 | 0.484076433 | 0.50318471 | 0.05095541 | 0.000000000 | 0 |
| i.vector.47 | 0.11538462 | 0.006410256 | 0.05769231 | 0.40384615 | 0.23076923 | 0.1602564 | 0.1794872 | 0.1730769 | 0.3653846 | 0.4102564 | ... | 0.55128205 | 0.62179487 | 0.320512821 | 0.35897436 | 0.17948718 | 0.115384615 | 0.05769231 | 0.02564103 | 0.000000000 | 0 |
| i.vector.48 | 0.19512195 | 0.195121951 | 0.18699187 | 0.17886179 | 0.17073171 | 0.1707317 | 0.1626016 | 0.1626016 | 0.1463415 | 0.1463415 | ... | 0.91056911 | 0.29268293 | 0.008130081 | 0.03252033 | 0.04065041 | 0.138211382 | 0.21951220 | 0.21138211 | 0.211382114 | 0 |
right.frame<-loadImages("Homework 4 Face Dataset/Right", "right*.*", 1)
right.frame
Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"Warning message in rep(cellres, length = 2): "'x' is NULL so the result will be NULL"
| r1.c1 | r1.c2 | r1.c3 | r1.c4 | r1.c5 | r1.c6 | r1.c7 | r1.c8 | r1.c9 | r1.c10 | ... | r60.c56 | r60.c57 | r60.c58 | r60.c59 | r60.c60 | r60.c61 | r60.c62 | r60.c63 | r60.c64 | class1.label | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| image.vector | 0.11612903 | 0.006451613 | 0.05806452 | 0.40000000 | 0.23225806 | 0.1612903 | 0.1806452 | 0.1741935 | 0.3677419 | 0.4129032 | ... | 0.6645161 | 0.7096774 | 0.380645161 | 0.26451613 | 0.49032258 | 0.419354839 | 0.53548387 | 0.55483871 | 0.374193548 | 1 |
| i.vector | 0.22047244 | 0.212598425 | 0.20472441 | 0.18897638 | 0.18110236 | 0.1811024 | 0.1732283 | 0.1732283 | 0.1653543 | 0.1653543 | ... | 0.9212598 | 0.8031496 | 0.409448819 | 0.03149606 | 0.03937008 | 0.133858268 | 0.21259843 | 0.22047244 | 0.212598425 | 1 |
| i.vector.1 | 0.19166667 | 0.183333333 | 0.17500000 | 0.17500000 | 0.16666667 | 0.1583333 | 0.1583333 | 0.1500000 | 0.1416667 | 0.1416667 | ... | 0.9166667 | 0.9166667 | 0.916666667 | 0.91666667 | 0.81666667 | 0.416666667 | 0.21666667 | 0.21666667 | 0.208333333 | 1 |
| i.vector.2 | 0.20161290 | 0.201612903 | 0.19354839 | 0.19354839 | 0.18548387 | 0.1774194 | 0.1693548 | 0.1612903 | 0.1612903 | 0.1532258 | ... | 0.9274194 | 0.7500000 | 0.096774194 | 0.03225806 | 0.04032258 | 0.145161290 | 0.21774194 | 0.21774194 | 0.217741935 | 1 |
| i.vector.3 | 0.19327731 | 0.184873950 | 0.18487395 | 0.17647059 | 0.16806723 | 0.1596639 | 0.1512605 | 0.1512605 | 0.1428571 | 0.1428571 | ... | 0.9243697 | 0.9243697 | 0.915966387 | 0.91596639 | 0.82352941 | 0.521008403 | 0.21848739 | 0.21848739 | 0.210084034 | 1 |
| i.vector.4 | 0.19200000 | 0.192000000 | 0.19200000 | 0.18400000 | 0.17600000 | 0.1680000 | 0.1600000 | 0.1600000 | 0.1520000 | 0.1440000 | ... | 0.8960000 | 0.6800000 | 0.040000000 | 0.02400000 | 0.04000000 | 0.136000000 | 0.20000000 | 0.20000000 | 0.200000000 | 1 |
| i.vector.5 | 0.19166667 | 0.191666667 | 0.18333333 | 0.18333333 | 0.17500000 | 0.1750000 | 0.1666667 | 0.1583333 | 0.1500000 | 0.1500000 | ... | 0.9166667 | 0.9166667 | 0.608333333 | 0.03333333 | 0.04166667 | 0.133333333 | 0.20833333 | 0.20833333 | 0.200000000 | 1 |
| i.vector.6 | 0.20161290 | 0.193548387 | 0.19354839 | 0.18548387 | 0.17741935 | 0.1693548 | 0.1612903 | 0.1612903 | 0.1532258 | 0.1532258 | ... | 0.9274194 | 0.7500000 | 0.112903226 | 0.03225806 | 0.04032258 | 0.145161290 | 0.22580645 | 0.21774194 | 0.217741935 | 1 |
| i.vector.7 | 0.23026316 | 0.230263158 | 0.22368421 | 0.21710526 | 0.21052632 | 0.2039474 | 0.2039474 | 0.1973684 | 0.1842105 | 0.1776316 | ... | 0.2434211 | 0.2105263 | 0.184210526 | 0.35526316 | 0.31578947 | 0.322368421 | 0.32236842 | 0.32236842 | 0.315789474 | 1 |
| i.vector.8 | 0.23566879 | 0.222929936 | 0.22292994 | 0.21656051 | 0.21019108 | 0.2038217 | 0.2038217 | 0.1974522 | 0.1910828 | 0.1847134 | ... | 0.2993631 | 0.2675159 | 0.369426752 | 0.23566879 | 0.31847134 | 0.318471338 | 0.31210191 | 0.31210191 | 0.305732484 | 1 |
| i.vector.9 | 0.22666667 | 0.220000000 | 0.21333333 | 0.20666667 | 0.20666667 | 0.2000000 | 0.1933333 | 0.1933333 | 0.1866667 | 0.1800000 | ... | 0.2933333 | 0.2266667 | 0.160000000 | 0.32000000 | 0.32000000 | 0.320000000 | 0.32000000 | 0.32000000 | 0.320000000 | 1 |
| i.vector.10 | 0.12101911 | 0.006369427 | 0.06369427 | 0.40764331 | 0.23566879 | 0.1656051 | 0.1847134 | 0.1783439 | 0.3757962 | 0.4140127 | ... | 0.3757962 | 0.6242038 | 0.624203822 | 0.33121019 | 0.39490446 | 0.261146497 | 0.05732484 | 0.03184713 | 0.000000000 | 1 |
| i.vector.11 | 0.23076923 | 0.224358974 | 0.22435897 | 0.21794872 | 0.21153846 | 0.2051282 | 0.1987179 | 0.1987179 | 0.1923077 | 0.1858974 | ... | 0.3012821 | 0.2692308 | 0.358974359 | 0.24358974 | 0.32051282 | 0.320512821 | 0.32051282 | 0.31410256 | 0.307692308 | 1 |
| i.vector.12 | 0.23178808 | 0.225165563 | 0.22516556 | 0.21854305 | 0.21192053 | 0.2052980 | 0.1986755 | 0.1920530 | 0.1920530 | 0.1854305 | ... | 0.2516556 | 0.2119205 | 0.172185430 | 0.35761589 | 0.31125828 | 0.317880795 | 0.31788079 | 0.31788079 | 0.317880795 | 1 |
| i.vector.13 | 0.23717949 | 0.230769231 | 0.22435897 | 0.21794872 | 0.21794872 | 0.2051282 | 0.2051282 | 0.1987179 | 0.1923077 | 0.1858974 | ... | 0.3333333 | 0.3782051 | 0.294871795 | 0.22435897 | 0.32051282 | 0.314102564 | 0.30769231 | 0.30128205 | 0.294871795 | 1 |
| i.vector.14 | 0.22516556 | 0.218543046 | 0.21192053 | 0.21192053 | 0.20529801 | 0.1986755 | 0.1920530 | 0.1854305 | 0.1788079 | 0.1721854 | ... | 0.3178808 | 0.2185430 | 0.165562914 | 0.28476821 | 0.31788079 | 0.317880795 | 0.31788079 | 0.31788079 | 0.317880795 | 1 |
| i.vector.15 | 0.23076923 | 0.224358974 | 0.21794872 | 0.21153846 | 0.21153846 | 0.2051282 | 0.2051282 | 0.1923077 | 0.1858974 | 0.1858974 | ... | 0.3076923 | 0.3076923 | 0.352564103 | 0.24358974 | 0.31410256 | 0.314102564 | 0.31410256 | 0.31410256 | 0.301282051 | 1 |
| i.vector.16 | 0.20325203 | 0.195121951 | 0.18699187 | 0.17886179 | 0.17073171 | 0.1707317 | 0.1626016 | 0.1544715 | 0.1544715 | 0.1463415 | ... | 0.9105691 | 0.9105691 | 0.910569106 | 0.89430894 | 0.90243902 | 0.845528455 | 0.22764228 | 0.21138211 | 0.211382114 | 1 |
| i.vector.17 | 0.20325203 | 0.203252033 | 0.19512195 | 0.18699187 | 0.17886179 | 0.1788618 | 0.1707317 | 0.1626016 | 0.1544715 | 0.1463415 | ... | 0.9105691 | 0.9024390 | 0.910569106 | 0.90243902 | 0.91056911 | 0.593495935 | 0.21951220 | 0.21951220 | 0.211382114 | 1 |
| i.vector.18 | 0.20491803 | 0.196721311 | 0.18852459 | 0.18852459 | 0.18032787 | 0.1721311 | 0.1639344 | 0.1557377 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.909836066 | 0.90163934 | 0.90983607 | 0.524590164 | 0.21311475 | 0.21311475 | 0.204918033 | 1 |
| i.vector.19 | 0.20491803 | 0.204918033 | 0.19672131 | 0.18852459 | 0.18032787 | 0.1721311 | 0.1639344 | 0.1639344 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.909836066 | 0.90163934 | 0.90163934 | 0.663934426 | 0.20491803 | 0.20491803 | 0.204918033 | 1 |
| i.vector.20 | 0.20491803 | 0.196721311 | 0.18852459 | 0.18032787 | 0.18032787 | 0.1721311 | 0.1721311 | 0.1639344 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.909836066 | 0.90163934 | 0.90163934 | 0.549180328 | 0.21311475 | 0.20491803 | 0.204918033 | 1 |
| i.vector.21 | 0.10828025 | 0.006369427 | 0.05732484 | 0.38853503 | 0.22292994 | 0.1592357 | 0.1719745 | 0.1656051 | 0.3566879 | 0.3949045 | ... | 0.5796178 | 0.7197452 | 0.726114650 | 0.37579618 | 0.43949045 | 0.337579618 | 0.42675159 | 0.45859873 | 0.248407643 | 1 |
| i.vector.22 | 0.20325203 | 0.195121951 | 0.18699187 | 0.17886179 | 0.17073171 | 0.1707317 | 0.1626016 | 0.1544715 | 0.1463415 | 0.1463415 | ... | 0.9105691 | 0.9105691 | 0.902439024 | 0.90243902 | 0.91056911 | 0.626016260 | 0.21951220 | 0.21951220 | 0.211382114 | 1 |
| i.vector.23 | 0.20491803 | 0.196721311 | 0.18852459 | 0.17213115 | 0.17213115 | 0.1639344 | 0.1639344 | 0.1557377 | 0.1475410 | 0.1393443 | ... | 0.9098361 | 0.9098361 | 0.909836066 | 0.89344262 | 0.90163934 | 0.614754098 | 0.21311475 | 0.21311475 | 0.204918033 | 1 |
| i.vector.24 | 0.20325203 | 0.195121951 | 0.19512195 | 0.18699187 | 0.17886179 | 0.1707317 | 0.1707317 | 0.1544715 | 0.1544715 | 0.1463415 | ... | 0.9024390 | 0.9105691 | 0.910569106 | 0.90243902 | 0.90243902 | 0.390243902 | 0.21951220 | 0.21138211 | 0.203252033 | 1 |
| i.vector.25 | 0.21052632 | 0.278195489 | 0.23308271 | 0.23308271 | 0.22556391 | 0.2255639 | 0.2255639 | 0.2180451 | 0.2180451 | 0.2105263 | ... | 0.7669173 | 0.7593985 | 0.699248120 | 0.20300752 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.26 | 0.07746479 | 0.070422535 | 0.07042254 | 0.07746479 | 0.09154930 | 0.1690141 | 0.1971831 | 0.1971831 | 0.1901408 | 0.1901408 | ... | 0.6971831 | 0.7042254 | 0.704225352 | 0.71126761 | 0.65492958 | 0.640845070 | 0.57042254 | 0.04225352 | 0.000000000 | 1 |
| i.vector.27 | 0.20300752 | 0.278195489 | 0.22556391 | 0.22556391 | 0.22556391 | 0.2180451 | 0.2180451 | 0.2105263 | 0.2105263 | 0.2030075 | ... | 0.7669173 | 0.7518797 | 0.706766917 | 0.25563910 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.28 | 0.07801418 | 0.070921986 | 0.07092199 | 0.07801418 | 0.09219858 | 0.1702128 | 0.1985816 | 0.1985816 | 0.1985816 | 0.1914894 | ... | 0.7021277 | 0.7021277 | 0.709219858 | 0.70921986 | 0.65248227 | 0.645390071 | 0.53900709 | 0.02836879 | 0.000000000 | 1 |
| i.vector.29 | 0.21804511 | 0.293233083 | 0.24060150 | 0.24060150 | 0.24060150 | 0.2330827 | 0.2330827 | 0.2255639 | 0.2180451 | 0.2180451 | ... | 0.7669173 | 0.7593985 | 0.706766917 | 0.22556391 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.30 | 0.07042254 | 0.077464789 | 0.07042254 | 0.07746479 | 0.09154930 | 0.1690141 | 0.2042254 | 0.1971831 | 0.1901408 | 0.1901408 | ... | 0.6971831 | 0.6971831 | 0.711267606 | 0.70422535 | 0.64788732 | 0.647887324 | 0.52816901 | 0.02112676 | 0.000000000 | 1 |
| i.vector.31 | 0.21052632 | 0.285714286 | 0.24060150 | 0.24060150 | 0.23308271 | 0.2255639 | 0.2255639 | 0.2255639 | 0.2180451 | 0.2105263 | ... | 0.7669173 | 0.7593985 | 0.706766917 | 0.19548872 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.32 | 0.12101911 | 0.006369427 | 0.06369427 | 0.41401274 | 0.23566879 | 0.1656051 | 0.1847134 | 0.1783439 | 0.3694268 | 0.4203822 | ... | 0.3630573 | 0.6050955 | 0.643312102 | 0.33757962 | 0.37579618 | 0.267515924 | 0.06369427 | 0.03821656 | 0.000000000 | 1 |
| i.vector.33 | 0.06993007 | 0.069930070 | 0.06993007 | 0.07692308 | 0.08391608 | 0.1608392 | 0.1958042 | 0.1958042 | 0.1888112 | 0.1888112 | ... | 0.6923077 | 0.6993007 | 0.699300699 | 0.70629371 | 0.65034965 | 0.643356643 | 0.55244755 | 0.03496503 | 0.000000000 | 1 |
| i.vector.34 | 0.02739726 | 0.273972603 | 0.21917808 | 0.21232877 | 0.21232877 | 0.2123288 | 0.2054795 | 0.1986301 | 0.1986301 | 0.1986301 | ... | 0.8150685 | 0.8972603 | 0.890410959 | 0.89041096 | 0.88356164 | 0.849315068 | 0.30136986 | 0.00000000 | 0.000000000 | 1 |
| i.vector.35 | 0.02962963 | 0.266666667 | 0.20000000 | 0.20740741 | 0.20000000 | 0.2000000 | 0.1925926 | 0.2000000 | 0.1925926 | 0.1851852 | ... | 0.9037037 | 0.9037037 | 0.903703704 | 0.90370370 | 0.89629630 | 0.888888889 | 0.60740741 | 0.00000000 | 0.000000000 | 1 |
| i.vector.36 | 0.02739726 | 0.273972603 | 0.21917808 | 0.21232877 | 0.21232877 | 0.2054795 | 0.2054795 | 0.2054795 | 0.1986301 | 0.1986301 | ... | 0.7945205 | 0.8767123 | 0.876712329 | 0.86986301 | 0.86986301 | 0.842465753 | 0.23972603 | 0.00000000 | 0.000000000 | 1 |
| i.vector.37 | 0.02205882 | 0.257352941 | 0.19852941 | 0.19852941 | 0.19852941 | 0.1911765 | 0.1911765 | 0.1911765 | 0.1838235 | 0.1838235 | ... | 0.8970588 | 0.8970588 | 0.897058824 | 0.88970588 | 0.88235294 | 0.882352941 | 0.75735294 | 0.02941176 | 0.000000000 | 1 |
| i.vector.38 | 0.02797203 | 0.272727273 | 0.20979021 | 0.20979021 | 0.20979021 | 0.2027972 | 0.2027972 | 0.1958042 | 0.1958042 | 0.1958042 | ... | 0.7692308 | 0.8881119 | 0.881118881 | 0.88111888 | 0.88111888 | 0.874125874 | 0.46153846 | 0.00000000 | 0.000000000 | 1 |
| i.vector.39 | 0.02941176 | 0.264705882 | 0.19852941 | 0.19852941 | 0.19852941 | 0.1985294 | 0.1911765 | 0.1911765 | 0.1911765 | 0.1911765 | ... | 0.8897059 | 0.8897059 | 0.889705882 | 0.88235294 | 0.87500000 | 0.867647059 | 0.75735294 | 0.03676471 | 0.000000000 | 1 |
| i.vector.40 | 0.02758621 | 0.275862069 | 0.21379310 | 0.21379310 | 0.21379310 | 0.2068966 | 0.2068966 | 0.2000000 | 0.2000000 | 0.1931034 | ... | 0.7448276 | 0.8689655 | 0.862068966 | 0.85517241 | 0.85517241 | 0.834482759 | 0.30344828 | 0.00000000 | 0.000000000 | 1 |
| i.vector.41 | 0.02189781 | 0.262773723 | 0.20437956 | 0.19708029 | 0.19708029 | 0.1970803 | 0.1897810 | 0.1897810 | 0.1824818 | 0.1824818 | ... | 0.8905109 | 0.8905109 | 0.890510949 | 0.88321168 | 0.87591241 | 0.868613139 | 0.58394161 | 0.00000000 | 0.000000000 | 1 |
| i.vector.42 | 0.28846154 | 0.275641026 | 0.27564103 | 0.26923077 | 0.25641026 | 0.2500000 | 0.2435897 | 0.2371795 | 0.2307692 | 0.2243590 | ... | 0.1282051 | 0.1282051 | 0.096153846 | 0.12179487 | 0.09615385 | 0.192307692 | 0.30128205 | 0.29487179 | 0.301282051 | 1 |
| i.vector.43 | 0.30128205 | 0.378205128 | 0.23076923 | 0.23717949 | 0.24358974 | 0.3141026 | 0.4358974 | 0.3846154 | 0.3333333 | 0.3141026 | ... | 0.2500000 | 0.2371795 | 0.134615385 | 0.08974359 | 0.03205128 | 0.006410256 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.44 | 0.25806452 | 0.251612903 | 0.24516129 | 0.23870968 | 0.23225806 | 0.2193548 | 0.2129032 | 0.2064516 | 0.2000000 | 0.1935484 | ... | 0.2193548 | 0.3161290 | 0.309677419 | 0.30967742 | 0.31612903 | 0.316129032 | 0.26451613 | 0.27741935 | 0.025806452 | 1 |
| i.vector.45 | 0.12179487 | 0.006410256 | 0.06410256 | 0.41666667 | 0.24358974 | 0.1730769 | 0.1858974 | 0.1794872 | 0.3782051 | 0.4294872 | ... | 0.4615385 | 0.3589744 | 0.621794872 | 0.51282051 | 0.33333333 | 0.269230769 | 0.06410256 | 0.03846154 | 0.006410256 | 1 |
| i.vector.46 | 0.10897436 | 0.006410256 | 0.05128205 | 0.38461538 | 0.22435897 | 0.1538462 | 0.1666667 | 0.1666667 | 0.3525641 | 0.3910256 | ... | 0.7756410 | 0.6602564 | 0.487179487 | 0.43589744 | 0.48076923 | 0.480769231 | 0.44230769 | 0.41025641 | 0.500000000 | 1 |
| i.vector.47 | 0.12179487 | 0.006410256 | 0.06410256 | 0.41666667 | 0.23717949 | 0.1666667 | 0.1858974 | 0.1794872 | 0.3782051 | 0.4166667 | ... | 0.3589744 | 0.5705128 | 0.596153846 | 0.31410256 | 0.38461538 | 0.153846154 | 0.05769231 | 0.02564103 | 0.000000000 | 1 |
| i.vector.48 | 0.20325203 | 0.195121951 | 0.18699187 | 0.18699187 | 0.17886179 | 0.1788618 | 0.1707317 | 0.1626016 | 0.1626016 | 0.1544715 | ... | 0.9186992 | 0.6747967 | 0.008130081 | 0.03252033 | 0.04065041 | 0.138211382 | 0.21138211 | 0.21138211 | 0.211382114 | 1 |
total.frame<-rbind(left.frame,right.frame)
total.frame
| r1.c1 | r1.c2 | r1.c3 | r1.c4 | r1.c5 | r1.c6 | r1.c7 | r1.c8 | r1.c9 | r1.c10 | ... | r60.c56 | r60.c57 | r60.c58 | r60.c59 | r60.c60 | r60.c61 | r60.c62 | r60.c63 | r60.c64 | class1.label | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| image.vector | 0.10897436 | 0.006410256 | 0.05128205 | 0.37179487 | 0.21794872 | 0.1538462 | 0.1666667 | 0.1602564 | 0.3461538 | 0.3846154 | ... | 0.5320513 | 0.6538462 | 0.333333333 | 0.51282051 | 0.30769231 | 0.3910256 | 0.5256410 | 0.37820513 | 0.044871795 | 0 |
| i.vector | 0.20769231 | 0.200000000 | 0.20000000 | 0.19230769 | 0.18461538 | 0.1769231 | 0.1692308 | 0.1692308 | 0.1615385 | 0.1538462 | ... | 0.8692308 | 0.5000000 | 0.007692308 | 0.03076923 | 0.03846154 | 0.1461538 | 0.2230769 | 0.22307692 | 0.215384615 | 0 |
| i.vector.1 | 0.18852459 | 0.180327869 | 0.17213115 | 0.16393443 | 0.16393443 | 0.1557377 | 0.1557377 | 0.1475410 | 0.1393443 | 0.1311475 | ... | 0.9016393 | 0.9016393 | 0.901639344 | 0.90163934 | 0.70491803 | 0.1885246 | 0.2213115 | 0.21311475 | 0.204918033 | 0 |
| i.vector.2 | 0.20634921 | 0.198412698 | 0.19841270 | 0.19047619 | 0.18253968 | 0.1746032 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1587302 | ... | 0.9206349 | 0.6190476 | 0.023809524 | 0.03174603 | 0.03968254 | 0.1428571 | 0.2222222 | 0.21428571 | 0.214285714 | 0 |
| i.vector.3 | 0.17500000 | 0.175000000 | 0.16666667 | 0.16666667 | 0.15833333 | 0.1500000 | 0.1500000 | 0.1416667 | 0.1333333 | 0.1250000 | ... | 0.9166667 | 0.9166667 | 0.916666667 | 0.91666667 | 0.80833333 | 0.4416667 | 0.2166667 | 0.21666667 | 0.208333333 | 0 |
| i.vector.4 | 0.20000000 | 0.192000000 | 0.19200000 | 0.18400000 | 0.17600000 | 0.1680000 | 0.1680000 | 0.1600000 | 0.1520000 | 0.1440000 | ... | 0.8880000 | 0.5040000 | 0.000000000 | 0.02400000 | 0.04000000 | 0.1360000 | 0.2160000 | 0.21600000 | 0.208000000 | 0 |
| i.vector.5 | 0.19834711 | 0.190082645 | 0.18181818 | 0.17355372 | 0.17355372 | 0.1652893 | 0.1570248 | 0.1487603 | 0.1487603 | 0.1404959 | ... | 0.9090909 | 0.9173554 | 0.685950413 | 0.03305785 | 0.04132231 | 0.1322314 | 0.2066116 | 0.20661157 | 0.198347107 | 0 |
| i.vector.6 | 0.19841270 | 0.198412698 | 0.19047619 | 0.18253968 | 0.17460317 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1587302 | 0.1507937 | ... | 0.8888889 | 0.5158730 | 0.007936508 | 0.03174603 | 0.03968254 | 0.1428571 | 0.2222222 | 0.22222222 | 0.222222222 | 0 |
| i.vector.7 | 0.24161074 | 0.228187919 | 0.22147651 | 0.21476510 | 0.21476510 | 0.2080537 | 0.2013423 | 0.2013423 | 0.1946309 | 0.1879195 | ... | 0.2617450 | 0.2684564 | 0.268456376 | 0.26845638 | 0.26174497 | 0.2617450 | 0.2617450 | 0.25503356 | 0.241610738 | 0 |
| i.vector.8 | 0.21935484 | 0.212903226 | 0.21290323 | 0.20645161 | 0.20000000 | 0.1935484 | 0.1870968 | 0.1806452 | 0.1806452 | 0.1741935 | ... | 0.2838710 | 0.2774194 | 0.264516129 | 0.25161290 | 0.23870968 | 0.2258065 | 0.2129032 | 0.20645161 | 0.200000000 | 0 |
| i.vector.9 | 0.24324324 | 0.229729730 | 0.22297297 | 0.21621622 | 0.20945946 | 0.2094595 | 0.2027027 | 0.2027027 | 0.1959459 | 0.1891892 | ... | 0.2567568 | 0.2635135 | 0.263513514 | 0.26351351 | 0.26351351 | 0.2635135 | 0.2567568 | 0.25000000 | 0.236486486 | 0 |
| i.vector.10 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.00000000 | 0.0000000 | 0.0000000 | 0.0000000 | 0.0000000 | 0.0000000 | ... | 0.3354430 | 0.3607595 | 0.316455696 | 0.46835443 | 0.15822785 | 0.1075949 | 0.0443038 | 0.02531646 | 0.000000000 | 0 |
| i.vector.11 | 0.21935484 | 0.212903226 | 0.20645161 | 0.20645161 | 0.20000000 | 0.1935484 | 0.1870968 | 0.1806452 | 0.1741935 | 0.1677419 | ... | 0.2838710 | 0.2774194 | 0.264516129 | 0.25161290 | 0.23870968 | 0.2258065 | 0.2129032 | 0.20000000 | 0.200000000 | 0 |
| i.vector.12 | 0.22368421 | 0.217105263 | 0.21710526 | 0.21052632 | 0.21052632 | 0.2039474 | 0.1973684 | 0.1907895 | 0.1842105 | 0.1842105 | ... | 0.2631579 | 0.2565789 | 0.256578947 | 0.25657895 | 0.24342105 | 0.2368421 | 0.2236842 | 0.21052632 | 0.197368421 | 0 |
| i.vector.13 | 0.22580645 | 0.225806452 | 0.21935484 | 0.21290323 | 0.20645161 | 0.2000000 | 0.2000000 | 0.1870968 | 0.1870968 | 0.1806452 | ... | 0.2838710 | 0.2774194 | 0.264516129 | 0.25161290 | 0.23870968 | 0.2258065 | 0.2129032 | 0.20645161 | 0.193548387 | 0 |
| i.vector.14 | 0.24000000 | 0.226666667 | 0.22000000 | 0.21333333 | 0.21333333 | 0.2066667 | 0.2066667 | 0.1933333 | 0.1933333 | 0.1866667 | ... | 0.2600000 | 0.2600000 | 0.260000000 | 0.26666667 | 0.26666667 | 0.2600000 | 0.2600000 | 0.25333333 | 0.240000000 | 0 |
| i.vector.15 | 0.22580645 | 0.219354839 | 0.21290323 | 0.21290323 | 0.20645161 | 0.2064516 | 0.2000000 | 0.1935484 | 0.1870968 | 0.1741935 | ... | 0.2838710 | 0.2774194 | 0.264516129 | 0.25161290 | 0.23870968 | 0.2258065 | 0.2129032 | 0.20645161 | 0.193548387 | 0 |
| i.vector.16 | 0.20800000 | 0.200000000 | 0.20000000 | 0.18400000 | 0.17600000 | 0.1760000 | 0.1680000 | 0.1600000 | 0.1520000 | 0.1440000 | ... | 0.9120000 | 0.9040000 | 0.896000000 | 0.88000000 | 0.81600000 | 0.1760000 | 0.2160000 | 0.21600000 | 0.216000000 | 0 |
| i.vector.17 | 0.20800000 | 0.200000000 | 0.19200000 | 0.18400000 | 0.18400000 | 0.1760000 | 0.1680000 | 0.1600000 | 0.1600000 | 0.1520000 | ... | 0.9040000 | 0.9120000 | 0.904000000 | 0.92000000 | 0.46400000 | 0.1680000 | 0.2240000 | 0.21600000 | 0.216000000 | 0 |
| i.vector.18 | 0.20967742 | 0.209677419 | 0.20161290 | 0.19354839 | 0.18548387 | 0.1854839 | 0.1693548 | 0.1693548 | 0.1612903 | 0.1532258 | ... | 0.9112903 | 0.9112903 | 0.895161290 | 0.89516129 | 0.89516129 | 0.2580645 | 0.2177419 | 0.20967742 | 0.209677419 | 0 |
| i.vector.19 | 0.20800000 | 0.200000000 | 0.19200000 | 0.19200000 | 0.18400000 | 0.1760000 | 0.1680000 | 0.1680000 | 0.1600000 | 0.1520000 | ... | 0.9120000 | 0.9040000 | 0.904000000 | 0.91200000 | 0.54400000 | 0.1600000 | 0.2240000 | 0.21600000 | 0.216000000 | 0 |
| i.vector.20 | 0.20967742 | 0.193548387 | 0.19354839 | 0.17741935 | 0.16935484 | 0.1693548 | 0.1693548 | 0.1612903 | 0.1451613 | 0.1451613 | ... | 0.9112903 | 0.9112903 | 0.911290323 | 0.89516129 | 0.91129032 | 0.3629032 | 0.2258065 | 0.21774194 | 0.217741935 | 0 |
| i.vector.21 | 0.10897436 | 0.000000000 | 0.05128205 | 0.38461538 | 0.22435897 | 0.1538462 | 0.1730769 | 0.1666667 | 0.3525641 | 0.3974359 | ... | 0.7307692 | 0.5128205 | 0.282051282 | 0.30769231 | 0.35897436 | 0.4102564 | 0.2051282 | 0.03205128 | 0.006410256 | 0 |
| i.vector.22 | 0.20800000 | 0.208000000 | 0.20000000 | 0.19200000 | 0.18400000 | 0.1760000 | 0.1760000 | 0.1680000 | 0.1600000 | 0.1520000 | ... | 0.9040000 | 0.8960000 | 0.904000000 | 0.90400000 | 0.49600000 | 0.1680000 | 0.2160000 | 0.20800000 | 0.208000000 | 0 |
| i.vector.23 | 0.20161290 | 0.193548387 | 0.18548387 | 0.17741935 | 0.17741935 | 0.1693548 | 0.1612903 | 0.1612903 | 0.1532258 | 0.1451613 | ... | 0.9112903 | 0.9112903 | 0.911290323 | 0.88709677 | 0.90322581 | 0.4354839 | 0.2177419 | 0.21774194 | 0.209677419 | 0 |
| i.vector.24 | 0.20634921 | 0.198412698 | 0.19841270 | 0.19047619 | 0.18253968 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1507937 | 0.1507937 | ... | 0.8809524 | 0.9047619 | 0.880952381 | 0.89682540 | 0.61111111 | 0.1587302 | 0.2142857 | 0.20634921 | 0.206349206 | 0 |
| i.vector.25 | 0.21428571 | 0.293650794 | 0.24603175 | 0.23809524 | 0.23809524 | 0.2301587 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2142857 | ... | 0.8412698 | 0.8333333 | 0.785714286 | 0.36507937 | 0.00000000 | 0.0000000 | 0.0000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.26 | 0.08029197 | 0.080291971 | 0.08029197 | 0.08029197 | 0.09489051 | 0.1824818 | 0.2189781 | 0.2116788 | 0.2116788 | 0.2043796 | ... | 0.7372263 | 0.7518248 | 0.751824818 | 0.75182482 | 0.72262774 | 0.6423358 | 0.1532847 | 0.00000000 | 0.000000000 | 0 |
| i.vector.27 | 0.20634921 | 0.285714286 | 0.23809524 | 0.23809524 | 0.23015873 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2142857 | 0.2063492 | ... | 0.8412698 | 0.8412698 | 0.785714286 | 0.35714286 | 0.00000000 | 0.0000000 | 0.0000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.28 | 0.08759124 | 0.087591241 | 0.08759124 | 0.08759124 | 0.10218978 | 0.1897810 | 0.2189781 | 0.2116788 | 0.2116788 | 0.2116788 | ... | 0.7299270 | 0.7372263 | 0.744525547 | 0.74452555 | 0.71532847 | 0.6277372 | 0.1532847 | 0.00000000 | 0.000000000 | 0 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | |
| i.vector.191 | 0.20491803 | 0.204918033 | 0.19672131 | 0.18852459 | 0.18032787 | 0.1721311 | 0.1639344 | 0.1639344 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.909836066 | 0.90163934 | 0.90163934 | 0.663934426 | 0.20491803 | 0.20491803 | 0.204918033 | 1 |
| i.vector.201 | 0.20491803 | 0.196721311 | 0.18852459 | 0.18032787 | 0.18032787 | 0.1721311 | 0.1721311 | 0.1639344 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.909836066 | 0.90163934 | 0.90163934 | 0.549180328 | 0.21311475 | 0.20491803 | 0.204918033 | 1 |
| i.vector.211 | 0.10828025 | 0.006369427 | 0.05732484 | 0.38853503 | 0.22292994 | 0.1592357 | 0.1719745 | 0.1656051 | 0.3566879 | 0.3949045 | ... | 0.5796178 | 0.7197452 | 0.726114650 | 0.37579618 | 0.43949045 | 0.337579618 | 0.42675159 | 0.45859873 | 0.248407643 | 1 |
| i.vector.221 | 0.20325203 | 0.195121951 | 0.18699187 | 0.17886179 | 0.17073171 | 0.1707317 | 0.1626016 | 0.1544715 | 0.1463415 | 0.1463415 | ... | 0.9105691 | 0.9105691 | 0.902439024 | 0.90243902 | 0.91056911 | 0.626016260 | 0.21951220 | 0.21951220 | 0.211382114 | 1 |
| i.vector.231 | 0.20491803 | 0.196721311 | 0.18852459 | 0.17213115 | 0.17213115 | 0.1639344 | 0.1639344 | 0.1557377 | 0.1475410 | 0.1393443 | ... | 0.9098361 | 0.9098361 | 0.909836066 | 0.89344262 | 0.90163934 | 0.614754098 | 0.21311475 | 0.21311475 | 0.204918033 | 1 |
| i.vector.241 | 0.20325203 | 0.195121951 | 0.19512195 | 0.18699187 | 0.17886179 | 0.1707317 | 0.1707317 | 0.1544715 | 0.1544715 | 0.1463415 | ... | 0.9024390 | 0.9105691 | 0.910569106 | 0.90243902 | 0.90243902 | 0.390243902 | 0.21951220 | 0.21138211 | 0.203252033 | 1 |
| i.vector.251 | 0.21052632 | 0.278195489 | 0.23308271 | 0.23308271 | 0.22556391 | 0.2255639 | 0.2255639 | 0.2180451 | 0.2180451 | 0.2105263 | ... | 0.7669173 | 0.7593985 | 0.699248120 | 0.20300752 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.261 | 0.07746479 | 0.070422535 | 0.07042254 | 0.07746479 | 0.09154930 | 0.1690141 | 0.1971831 | 0.1971831 | 0.1901408 | 0.1901408 | ... | 0.6971831 | 0.7042254 | 0.704225352 | 0.71126761 | 0.65492958 | 0.640845070 | 0.57042254 | 0.04225352 | 0.000000000 | 1 |
| i.vector.271 | 0.20300752 | 0.278195489 | 0.22556391 | 0.22556391 | 0.22556391 | 0.2180451 | 0.2180451 | 0.2105263 | 0.2105263 | 0.2030075 | ... | 0.7669173 | 0.7518797 | 0.706766917 | 0.25563910 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.281 | 0.07801418 | 0.070921986 | 0.07092199 | 0.07801418 | 0.09219858 | 0.1702128 | 0.1985816 | 0.1985816 | 0.1985816 | 0.1914894 | ... | 0.7021277 | 0.7021277 | 0.709219858 | 0.70921986 | 0.65248227 | 0.645390071 | 0.53900709 | 0.02836879 | 0.000000000 | 1 |
| i.vector.291 | 0.21804511 | 0.293233083 | 0.24060150 | 0.24060150 | 0.24060150 | 0.2330827 | 0.2330827 | 0.2255639 | 0.2180451 | 0.2180451 | ... | 0.7669173 | 0.7593985 | 0.706766917 | 0.22556391 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.301 | 0.07042254 | 0.077464789 | 0.07042254 | 0.07746479 | 0.09154930 | 0.1690141 | 0.2042254 | 0.1971831 | 0.1901408 | 0.1901408 | ... | 0.6971831 | 0.6971831 | 0.711267606 | 0.70422535 | 0.64788732 | 0.647887324 | 0.52816901 | 0.02112676 | 0.000000000 | 1 |
| i.vector.311 | 0.21052632 | 0.285714286 | 0.24060150 | 0.24060150 | 0.23308271 | 0.2255639 | 0.2255639 | 0.2255639 | 0.2180451 | 0.2105263 | ... | 0.7669173 | 0.7593985 | 0.706766917 | 0.19548872 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.321 | 0.12101911 | 0.006369427 | 0.06369427 | 0.41401274 | 0.23566879 | 0.1656051 | 0.1847134 | 0.1783439 | 0.3694268 | 0.4203822 | ... | 0.3630573 | 0.6050955 | 0.643312102 | 0.33757962 | 0.37579618 | 0.267515924 | 0.06369427 | 0.03821656 | 0.000000000 | 1 |
| i.vector.331 | 0.06993007 | 0.069930070 | 0.06993007 | 0.07692308 | 0.08391608 | 0.1608392 | 0.1958042 | 0.1958042 | 0.1888112 | 0.1888112 | ... | 0.6923077 | 0.6993007 | 0.699300699 | 0.70629371 | 0.65034965 | 0.643356643 | 0.55244755 | 0.03496503 | 0.000000000 | 1 |
| i.vector.341 | 0.02739726 | 0.273972603 | 0.21917808 | 0.21232877 | 0.21232877 | 0.2123288 | 0.2054795 | 0.1986301 | 0.1986301 | 0.1986301 | ... | 0.8150685 | 0.8972603 | 0.890410959 | 0.89041096 | 0.88356164 | 0.849315068 | 0.30136986 | 0.00000000 | 0.000000000 | 1 |
| i.vector.351 | 0.02962963 | 0.266666667 | 0.20000000 | 0.20740741 | 0.20000000 | 0.2000000 | 0.1925926 | 0.2000000 | 0.1925926 | 0.1851852 | ... | 0.9037037 | 0.9037037 | 0.903703704 | 0.90370370 | 0.89629630 | 0.888888889 | 0.60740741 | 0.00000000 | 0.000000000 | 1 |
| i.vector.361 | 0.02739726 | 0.273972603 | 0.21917808 | 0.21232877 | 0.21232877 | 0.2054795 | 0.2054795 | 0.2054795 | 0.1986301 | 0.1986301 | ... | 0.7945205 | 0.8767123 | 0.876712329 | 0.86986301 | 0.86986301 | 0.842465753 | 0.23972603 | 0.00000000 | 0.000000000 | 1 |
| i.vector.371 | 0.02205882 | 0.257352941 | 0.19852941 | 0.19852941 | 0.19852941 | 0.1911765 | 0.1911765 | 0.1911765 | 0.1838235 | 0.1838235 | ... | 0.8970588 | 0.8970588 | 0.897058824 | 0.88970588 | 0.88235294 | 0.882352941 | 0.75735294 | 0.02941176 | 0.000000000 | 1 |
| i.vector.381 | 0.02797203 | 0.272727273 | 0.20979021 | 0.20979021 | 0.20979021 | 0.2027972 | 0.2027972 | 0.1958042 | 0.1958042 | 0.1958042 | ... | 0.7692308 | 0.8881119 | 0.881118881 | 0.88111888 | 0.88111888 | 0.874125874 | 0.46153846 | 0.00000000 | 0.000000000 | 1 |
| i.vector.391 | 0.02941176 | 0.264705882 | 0.19852941 | 0.19852941 | 0.19852941 | 0.1985294 | 0.1911765 | 0.1911765 | 0.1911765 | 0.1911765 | ... | 0.8897059 | 0.8897059 | 0.889705882 | 0.88235294 | 0.87500000 | 0.867647059 | 0.75735294 | 0.03676471 | 0.000000000 | 1 |
| i.vector.401 | 0.02758621 | 0.275862069 | 0.21379310 | 0.21379310 | 0.21379310 | 0.2068966 | 0.2068966 | 0.2000000 | 0.2000000 | 0.1931034 | ... | 0.7448276 | 0.8689655 | 0.862068966 | 0.85517241 | 0.85517241 | 0.834482759 | 0.30344828 | 0.00000000 | 0.000000000 | 1 |
| i.vector.411 | 0.02189781 | 0.262773723 | 0.20437956 | 0.19708029 | 0.19708029 | 0.1970803 | 0.1897810 | 0.1897810 | 0.1824818 | 0.1824818 | ... | 0.8905109 | 0.8905109 | 0.890510949 | 0.88321168 | 0.87591241 | 0.868613139 | 0.58394161 | 0.00000000 | 0.000000000 | 1 |
| i.vector.421 | 0.28846154 | 0.275641026 | 0.27564103 | 0.26923077 | 0.25641026 | 0.2500000 | 0.2435897 | 0.2371795 | 0.2307692 | 0.2243590 | ... | 0.1282051 | 0.1282051 | 0.096153846 | 0.12179487 | 0.09615385 | 0.192307692 | 0.30128205 | 0.29487179 | 0.301282051 | 1 |
| i.vector.431 | 0.30128205 | 0.378205128 | 0.23076923 | 0.23717949 | 0.24358974 | 0.3141026 | 0.4358974 | 0.3846154 | 0.3333333 | 0.3141026 | ... | 0.2500000 | 0.2371795 | 0.134615385 | 0.08974359 | 0.03205128 | 0.006410256 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.441 | 0.25806452 | 0.251612903 | 0.24516129 | 0.23870968 | 0.23225806 | 0.2193548 | 0.2129032 | 0.2064516 | 0.2000000 | 0.1935484 | ... | 0.2193548 | 0.3161290 | 0.309677419 | 0.30967742 | 0.31612903 | 0.316129032 | 0.26451613 | 0.27741935 | 0.025806452 | 1 |
| i.vector.451 | 0.12179487 | 0.006410256 | 0.06410256 | 0.41666667 | 0.24358974 | 0.1730769 | 0.1858974 | 0.1794872 | 0.3782051 | 0.4294872 | ... | 0.4615385 | 0.3589744 | 0.621794872 | 0.51282051 | 0.33333333 | 0.269230769 | 0.06410256 | 0.03846154 | 0.006410256 | 1 |
| i.vector.461 | 0.10897436 | 0.006410256 | 0.05128205 | 0.38461538 | 0.22435897 | 0.1538462 | 0.1666667 | 0.1666667 | 0.3525641 | 0.3910256 | ... | 0.7756410 | 0.6602564 | 0.487179487 | 0.43589744 | 0.48076923 | 0.480769231 | 0.44230769 | 0.41025641 | 0.500000000 | 1 |
| i.vector.471 | 0.12179487 | 0.006410256 | 0.06410256 | 0.41666667 | 0.23717949 | 0.1666667 | 0.1858974 | 0.1794872 | 0.3782051 | 0.4166667 | ... | 0.3589744 | 0.5705128 | 0.596153846 | 0.31410256 | 0.38461538 | 0.153846154 | 0.05769231 | 0.02564103 | 0.000000000 | 1 |
| i.vector.481 | 0.20325203 | 0.195121951 | 0.18699187 | 0.18699187 | 0.17886179 | 0.1788618 | 0.1707317 | 0.1626016 | 0.1626016 | 0.1544715 | ... | 0.9186992 | 0.6747967 | 0.008130081 | 0.03252033 | 0.04065041 | 0.138211382 | 0.21138211 | 0.21138211 | 0.211382114 | 1 |
Next we create the training and test sets:
train.index<-sample(nrow(total.frame),nrow(total.frame)*0.8)
training.set<-total.frame[train.index,]
training.set
| r1.c1 | r1.c2 | r1.c3 | r1.c4 | r1.c5 | r1.c6 | r1.c7 | r1.c8 | r1.c9 | r1.c10 | ... | r60.c56 | r60.c57 | r60.c58 | r60.c59 | r60.c60 | r60.c61 | r60.c62 | r60.c63 | r60.c64 | class1.label | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| i.vector.5 | 0.19834711 | 0.190082645 | 0.18181818 | 0.17355372 | 0.17355372 | 0.1652893 | 0.1570248 | 0.1487603 | 0.1487603 | 0.1404959 | ... | 0.9090909 | 0.9173554 | 0.685950413 | 0.03305785 | 0.04132231 | 0.1322314 | 0.20661157 | 0.20661157 | 0.19834711 | 0 |
| i.vector.12 | 0.22368421 | 0.217105263 | 0.21710526 | 0.21052632 | 0.21052632 | 0.2039474 | 0.1973684 | 0.1907895 | 0.1842105 | 0.1842105 | ... | 0.2631579 | 0.2565789 | 0.256578947 | 0.25657895 | 0.24342105 | 0.2368421 | 0.22368421 | 0.21052632 | 0.19736842 | 0 |
| i.vector.471 | 0.12179487 | 0.006410256 | 0.06410256 | 0.41666667 | 0.23717949 | 0.1666667 | 0.1858974 | 0.1794872 | 0.3782051 | 0.4166667 | ... | 0.3589744 | 0.5705128 | 0.596153846 | 0.31410256 | 0.38461538 | 0.1538462 | 0.05769231 | 0.02564103 | 0.00000000 | 1 |
| i.vector.18 | 0.20967742 | 0.209677419 | 0.20161290 | 0.19354839 | 0.18548387 | 0.1854839 | 0.1693548 | 0.1693548 | 0.1612903 | 0.1532258 | ... | 0.9112903 | 0.9112903 | 0.895161290 | 0.89516129 | 0.89516129 | 0.2580645 | 0.21774194 | 0.20967742 | 0.20967742 | 0 |
| i.vector.47 | 0.11538462 | 0.006410256 | 0.05769231 | 0.40384615 | 0.23076923 | 0.1602564 | 0.1794872 | 0.1730769 | 0.3653846 | 0.4102564 | ... | 0.5512821 | 0.6217949 | 0.320512821 | 0.35897436 | 0.17948718 | 0.1153846 | 0.05769231 | 0.02564103 | 0.00000000 | 0 |
| i.vector.291 | 0.21804511 | 0.293233083 | 0.24060150 | 0.24060150 | 0.24060150 | 0.2330827 | 0.2330827 | 0.2255639 | 0.2180451 | 0.2180451 | ... | 0.7669173 | 0.7593985 | 0.706766917 | 0.22556391 | 0.00000000 | 0.0000000 | 0.00000000 | 0.00000000 | 0.00000000 | 1 |
| i.vector.41 | 0.02205882 | 0.257352941 | 0.19117647 | 0.19117647 | 0.19117647 | 0.1911765 | 0.1838235 | 0.1838235 | 0.1838235 | 0.1764706 | ... | 0.8897059 | 0.8897059 | 0.889705882 | 0.88235294 | 0.85294118 | 0.7647059 | 0.07352941 | 0.00000000 | 0.00000000 | 0 |
| i.vector.371 | 0.02205882 | 0.257352941 | 0.19852941 | 0.19852941 | 0.19852941 | 0.1911765 | 0.1911765 | 0.1911765 | 0.1838235 | 0.1838235 | ... | 0.8970588 | 0.8970588 | 0.897058824 | 0.88970588 | 0.88235294 | 0.8823529 | 0.75735294 | 0.02941176 | 0.00000000 | 1 |
| i.vector.1 | 0.18852459 | 0.180327869 | 0.17213115 | 0.16393443 | 0.16393443 | 0.1557377 | 0.1557377 | 0.1475410 | 0.1393443 | 0.1311475 | ... | 0.9016393 | 0.9016393 | 0.901639344 | 0.90163934 | 0.70491803 | 0.1885246 | 0.22131148 | 0.21311475 | 0.20491803 | 0 |
| i.vector.16 | 0.20800000 | 0.200000000 | 0.20000000 | 0.18400000 | 0.17600000 | 0.1760000 | 0.1680000 | 0.1600000 | 0.1520000 | 0.1440000 | ... | 0.9120000 | 0.9040000 | 0.896000000 | 0.88000000 | 0.81600000 | 0.1760000 | 0.21600000 | 0.21600000 | 0.21600000 | 0 |
| i.vector.281 | 0.07801418 | 0.070921986 | 0.07092199 | 0.07801418 | 0.09219858 | 0.1702128 | 0.1985816 | 0.1985816 | 0.1985816 | 0.1914894 | ... | 0.7021277 | 0.7021277 | 0.709219858 | 0.70921986 | 0.65248227 | 0.6453901 | 0.53900709 | 0.02836879 | 0.00000000 | 1 |
| i.vector.221 | 0.20325203 | 0.195121951 | 0.18699187 | 0.17886179 | 0.17073171 | 0.1707317 | 0.1626016 | 0.1544715 | 0.1463415 | 0.1463415 | ... | 0.9105691 | 0.9105691 | 0.902439024 | 0.90243902 | 0.91056911 | 0.6260163 | 0.21951220 | 0.21951220 | 0.21138211 | 1 |
| i.vector.34 | 0.02816901 | 0.260563380 | 0.20422535 | 0.20422535 | 0.19718310 | 0.1971831 | 0.1901408 | 0.1901408 | 0.1901408 | 0.1830986 | ... | 0.8521127 | 0.8450704 | 0.845070423 | 0.82394366 | 0.80281690 | 0.2253521 | 0.00000000 | 0.00000000 | 0.00000000 | 0 |
| i.vector1 | 0.22047244 | 0.212598425 | 0.20472441 | 0.18897638 | 0.18110236 | 0.1811024 | 0.1732283 | 0.1732283 | 0.1653543 | 0.1653543 | ... | 0.9212598 | 0.8031496 | 0.409448819 | 0.03149606 | 0.03937008 | 0.1338583 | 0.21259843 | 0.22047244 | 0.21259843 | 1 |
| i.vector.48 | 0.19512195 | 0.195121951 | 0.18699187 | 0.17886179 | 0.17073171 | 0.1707317 | 0.1626016 | 0.1626016 | 0.1463415 | 0.1463415 | ... | 0.9105691 | 0.2926829 | 0.008130081 | 0.03252033 | 0.04065041 | 0.1382114 | 0.21951220 | 0.21138211 | 0.21138211 | 0 |
| i.vector.401 | 0.02758621 | 0.275862069 | 0.21379310 | 0.21379310 | 0.21379310 | 0.2068966 | 0.2068966 | 0.2000000 | 0.2000000 | 0.1931034 | ... | 0.7448276 | 0.8689655 | 0.862068966 | 0.85517241 | 0.85517241 | 0.8344828 | 0.30344828 | 0.00000000 | 0.00000000 | 1 |
| i.vector.19 | 0.20800000 | 0.200000000 | 0.19200000 | 0.19200000 | 0.18400000 | 0.1760000 | 0.1680000 | 0.1680000 | 0.1600000 | 0.1520000 | ... | 0.9120000 | 0.9040000 | 0.904000000 | 0.91200000 | 0.54400000 | 0.1600000 | 0.22400000 | 0.21600000 | 0.21600000 | 0 |
| i.vector.61 | 0.20161290 | 0.193548387 | 0.19354839 | 0.18548387 | 0.17741935 | 0.1693548 | 0.1612903 | 0.1612903 | 0.1532258 | 0.1532258 | ... | 0.9274194 | 0.7500000 | 0.112903226 | 0.03225806 | 0.04032258 | 0.1451613 | 0.22580645 | 0.21774194 | 0.21774194 | 1 |
| i.vector.27 | 0.20634921 | 0.285714286 | 0.23809524 | 0.23809524 | 0.23015873 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2142857 | 0.2063492 | ... | 0.8412698 | 0.8412698 | 0.785714286 | 0.35714286 | 0.00000000 | 0.0000000 | 0.00000000 | 0.00000000 | 0.00000000 | 0 |
| i.vector.301 | 0.07042254 | 0.077464789 | 0.07042254 | 0.07746479 | 0.09154930 | 0.1690141 | 0.2042254 | 0.1971831 | 0.1901408 | 0.1901408 | ... | 0.6971831 | 0.6971831 | 0.711267606 | 0.70422535 | 0.64788732 | 0.6478873 | 0.52816901 | 0.02112676 | 0.00000000 | 1 |
| i.vector.441 | 0.25806452 | 0.251612903 | 0.24516129 | 0.23870968 | 0.23225806 | 0.2193548 | 0.2129032 | 0.2064516 | 0.2000000 | 0.1935484 | ... | 0.2193548 | 0.3161290 | 0.309677419 | 0.30967742 | 0.31612903 | 0.3161290 | 0.26451613 | 0.27741935 | 0.02580645 | 1 |
| i.vector.30 | 0.07407407 | 0.074074074 | 0.07407407 | 0.08148148 | 0.08888889 | 0.1851852 | 0.2148148 | 0.2148148 | 0.2074074 | 0.2000000 | ... | 0.7555556 | 0.7555556 | 0.762962963 | 0.75555556 | 0.72592593 | 0.6296296 | 0.11851852 | 0.00000000 | 0.00000000 | 0 |
| i.vector.241 | 0.20325203 | 0.195121951 | 0.19512195 | 0.18699187 | 0.17886179 | 0.1707317 | 0.1707317 | 0.1544715 | 0.1544715 | 0.1463415 | ... | 0.9024390 | 0.9105691 | 0.910569106 | 0.90243902 | 0.90243902 | 0.3902439 | 0.21951220 | 0.21138211 | 0.20325203 | 1 |
| i.vector.11 | 0.21935484 | 0.212903226 | 0.20645161 | 0.20645161 | 0.20000000 | 0.1935484 | 0.1870968 | 0.1806452 | 0.1741935 | 0.1677419 | ... | 0.2838710 | 0.2774194 | 0.264516129 | 0.25161290 | 0.23870968 | 0.2258065 | 0.21290323 | 0.20000000 | 0.20000000 | 0 |
| i.vector.37 | 0.02222222 | 0.259259259 | 0.20000000 | 0.20000000 | 0.19259259 | 0.1925926 | 0.1925926 | 0.1925926 | 0.1851852 | 0.1851852 | ... | 0.9037037 | 0.9037037 | 0.896296296 | 0.89629630 | 0.88888889 | 0.8222222 | 0.13333333 | 0.00000000 | 0.00000000 | 0 |
| i.vector.91 | 0.22666667 | 0.220000000 | 0.21333333 | 0.20666667 | 0.20666667 | 0.2000000 | 0.1933333 | 0.1933333 | 0.1866667 | 0.1800000 | ... | 0.2933333 | 0.2266667 | 0.160000000 | 0.32000000 | 0.32000000 | 0.3200000 | 0.32000000 | 0.32000000 | 0.32000000 | 1 |
| i.vector.25 | 0.21428571 | 0.293650794 | 0.24603175 | 0.23809524 | 0.23809524 | 0.2301587 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2142857 | ... | 0.8412698 | 0.8333333 | 0.785714286 | 0.36507937 | 0.00000000 | 0.0000000 | 0.00000000 | 0.00000000 | 0.00000000 | 0 |
| i.vector.161 | 0.20325203 | 0.195121951 | 0.18699187 | 0.17886179 | 0.17073171 | 0.1707317 | 0.1626016 | 0.1544715 | 0.1544715 | 0.1463415 | ... | 0.9105691 | 0.9105691 | 0.910569106 | 0.89430894 | 0.90243902 | 0.8455285 | 0.22764228 | 0.21138211 | 0.21138211 | 1 |
| i.vector.171 | 0.20325203 | 0.203252033 | 0.19512195 | 0.18699187 | 0.17886179 | 0.1788618 | 0.1707317 | 0.1626016 | 0.1544715 | 0.1463415 | ... | 0.9105691 | 0.9024390 | 0.910569106 | 0.90243902 | 0.91056911 | 0.5934959 | 0.21951220 | 0.21951220 | 0.21138211 | 1 |
| i.vector.9 | 0.24324324 | 0.229729730 | 0.22297297 | 0.21621622 | 0.20945946 | 0.2094595 | 0.2027027 | 0.2027027 | 0.1959459 | 0.1891892 | ... | 0.2567568 | 0.2635135 | 0.263513514 | 0.26351351 | 0.26351351 | 0.2635135 | 0.25675676 | 0.25000000 | 0.23648649 | 0 |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | |
| i.vector.20 | 0.20967742 | 0.193548387 | 0.19354839 | 0.17741935 | 0.16935484 | 0.1693548 | 0.1693548 | 0.1612903 | 0.1451613 | 0.1451613 | ... | 0.9112903 | 0.9112903 | 0.91129032 | 0.89516129 | 0.91129032 | 0.3629032 | 0.22580645 | 0.21774194 | 0.21774194 | 0 |
| i.vector.38 | 0.02898551 | 0.268115942 | 0.20289855 | 0.21014493 | 0.20289855 | 0.2028986 | 0.1956522 | 0.1956522 | 0.1956522 | 0.1884058 | ... | 0.8985507 | 0.8913043 | 0.89130435 | 0.89130435 | 0.88405797 | 0.7608696 | 0.02173913 | 0.00000000 | 0.00000000 | 0 |
| i.vector.391 | 0.02941176 | 0.264705882 | 0.19852941 | 0.19852941 | 0.19852941 | 0.1985294 | 0.1911765 | 0.1911765 | 0.1911765 | 0.1911765 | ... | 0.8897059 | 0.8897059 | 0.88970588 | 0.88235294 | 0.87500000 | 0.8676471 | 0.75735294 | 0.03676471 | 0.00000000 | 1 |
| i.vector.35 | 0.02962963 | 0.259259259 | 0.20000000 | 0.20000000 | 0.19259259 | 0.1925926 | 0.1925926 | 0.1851852 | 0.1851852 | 0.1777778 | ... | 0.8962963 | 0.8888889 | 0.89629630 | 0.88888889 | 0.85925926 | 0.7851852 | 0.08888889 | 0.00000000 | 0.00000000 | 0 |
| i.vector.181 | 0.20491803 | 0.196721311 | 0.18852459 | 0.18852459 | 0.18032787 | 0.1721311 | 0.1639344 | 0.1557377 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.90983607 | 0.90163934 | 0.90983607 | 0.5245902 | 0.21311475 | 0.21311475 | 0.20491803 | 1 |
| i.vector.71 | 0.23026316 | 0.230263158 | 0.22368421 | 0.21710526 | 0.21052632 | 0.2039474 | 0.2039474 | 0.1973684 | 0.1842105 | 0.1776316 | ... | 0.2434211 | 0.2105263 | 0.18421053 | 0.35526316 | 0.31578947 | 0.3223684 | 0.32236842 | 0.32236842 | 0.31578947 | 1 |
| i.vector.51 | 0.19166667 | 0.191666667 | 0.18333333 | 0.18333333 | 0.17500000 | 0.1750000 | 0.1666667 | 0.1583333 | 0.1500000 | 0.1500000 | ... | 0.9166667 | 0.9166667 | 0.60833333 | 0.03333333 | 0.04166667 | 0.1333333 | 0.20833333 | 0.20833333 | 0.20000000 | 1 |
| i.vector.39 | 0.02222222 | 0.259259259 | 0.20000000 | 0.19259259 | 0.19259259 | 0.1851852 | 0.1851852 | 0.1851852 | 0.1851852 | 0.1777778 | ... | 0.8888889 | 0.8888889 | 0.88148148 | 0.88148148 | 0.88148148 | 0.8370370 | 0.32592593 | 0.00000000 | 0.00000000 | 0 |
| i.vector.29 | 0.21428571 | 0.293650794 | 0.24603175 | 0.23809524 | 0.23809524 | 0.2380952 | 0.2301587 | 0.2222222 | 0.2222222 | 0.2222222 | ... | 0.8492063 | 0.8412698 | 0.79365079 | 0.37301587 | 0.00000000 | 0.0000000 | 0.00000000 | 0.00000000 | 0.00000000 | 0 |
| i.vector.36 | 0.02816901 | 0.267605634 | 0.21126761 | 0.21126761 | 0.20422535 | 0.1971831 | 0.2042254 | 0.1971831 | 0.1971831 | 0.1901408 | ... | 0.8943662 | 0.8873239 | 0.88028169 | 0.88028169 | 0.87323944 | 0.4647887 | 0.00000000 | 0.00000000 | 0.00000000 | 0 |
| i.vector.23 | 0.20161290 | 0.193548387 | 0.18548387 | 0.17741935 | 0.17741935 | 0.1693548 | 0.1612903 | 0.1612903 | 0.1532258 | 0.1451613 | ... | 0.9112903 | 0.9112903 | 0.91129032 | 0.88709677 | 0.90322581 | 0.4354839 | 0.21774194 | 0.21774194 | 0.20967742 | 0 |
| i.vector.81 | 0.23566879 | 0.222929936 | 0.22292994 | 0.21656051 | 0.21019108 | 0.2038217 | 0.2038217 | 0.1974522 | 0.1910828 | 0.1847134 | ... | 0.2993631 | 0.2675159 | 0.36942675 | 0.23566879 | 0.31847134 | 0.3184713 | 0.31210191 | 0.31210191 | 0.30573248 | 1 |
| i.vector.210 | 0.20161290 | 0.201612903 | 0.19354839 | 0.19354839 | 0.18548387 | 0.1774194 | 0.1693548 | 0.1612903 | 0.1612903 | 0.1532258 | ... | 0.9274194 | 0.7500000 | 0.09677419 | 0.03225806 | 0.04032258 | 0.1451613 | 0.21774194 | 0.21774194 | 0.21774194 | 1 |
| i.vector.15 | 0.22580645 | 0.219354839 | 0.21290323 | 0.21290323 | 0.20645161 | 0.2064516 | 0.2000000 | 0.1935484 | 0.1870968 | 0.1741935 | ... | 0.2838710 | 0.2774194 | 0.26451613 | 0.25161290 | 0.23870968 | 0.2258065 | 0.21290323 | 0.20645161 | 0.19354839 | 0 |
| i.vector.331 | 0.06993007 | 0.069930070 | 0.06993007 | 0.07692308 | 0.08391608 | 0.1608392 | 0.1958042 | 0.1958042 | 0.1888112 | 0.1888112 | ... | 0.6923077 | 0.6993007 | 0.69930070 | 0.70629371 | 0.65034965 | 0.6433566 | 0.55244755 | 0.03496503 | 0.00000000 | 1 |
| i.vector.14 | 0.24000000 | 0.226666667 | 0.22000000 | 0.21333333 | 0.21333333 | 0.2066667 | 0.2066667 | 0.1933333 | 0.1933333 | 0.1866667 | ... | 0.2600000 | 0.2600000 | 0.26000000 | 0.26666667 | 0.26666667 | 0.2600000 | 0.26000000 | 0.25333333 | 0.24000000 | 0 |
| i.vector.101 | 0.12101911 | 0.006369427 | 0.06369427 | 0.40764331 | 0.23566879 | 0.1656051 | 0.1847134 | 0.1783439 | 0.3757962 | 0.4140127 | ... | 0.3757962 | 0.6242038 | 0.62420382 | 0.33121019 | 0.39490446 | 0.2611465 | 0.05732484 | 0.03184713 | 0.00000000 | 1 |
| image.vector | 0.10897436 | 0.006410256 | 0.05128205 | 0.37179487 | 0.21794872 | 0.1538462 | 0.1666667 | 0.1602564 | 0.3461538 | 0.3846154 | ... | 0.5320513 | 0.6538462 | 0.33333333 | 0.51282051 | 0.30769231 | 0.3910256 | 0.52564103 | 0.37820513 | 0.04487179 | 0 |
| i.vector.251 | 0.21052632 | 0.278195489 | 0.23308271 | 0.23308271 | 0.22556391 | 0.2255639 | 0.2255639 | 0.2180451 | 0.2180451 | 0.2105263 | ... | 0.7669173 | 0.7593985 | 0.69924812 | 0.20300752 | 0.00000000 | 0.0000000 | 0.00000000 | 0.00000000 | 0.00000000 | 1 |
| i.vector.201 | 0.20491803 | 0.196721311 | 0.18852459 | 0.18032787 | 0.18032787 | 0.1721311 | 0.1721311 | 0.1639344 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.90983607 | 0.90163934 | 0.90163934 | 0.5491803 | 0.21311475 | 0.20491803 | 0.20491803 | 1 |
| i.vector.311 | 0.21052632 | 0.285714286 | 0.24060150 | 0.24060150 | 0.23308271 | 0.2255639 | 0.2255639 | 0.2255639 | 0.2180451 | 0.2105263 | ... | 0.7669173 | 0.7593985 | 0.70676692 | 0.19548872 | 0.00000000 | 0.0000000 | 0.00000000 | 0.00000000 | 0.00000000 | 1 |
| i.vector.10 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.00000000 | 0.0000000 | 0.0000000 | 0.0000000 | 0.0000000 | 0.0000000 | ... | 0.3354430 | 0.3607595 | 0.31645570 | 0.46835443 | 0.15822785 | 0.1075949 | 0.04430380 | 0.02531646 | 0.00000000 | 0 |
| i.vector.3 | 0.17500000 | 0.175000000 | 0.16666667 | 0.16666667 | 0.15833333 | 0.1500000 | 0.1500000 | 0.1416667 | 0.1333333 | 0.1250000 | ... | 0.9166667 | 0.9166667 | 0.91666667 | 0.91666667 | 0.80833333 | 0.4416667 | 0.21666667 | 0.21666667 | 0.20833333 | 0 |
| i.vector.310 | 0.19327731 | 0.184873950 | 0.18487395 | 0.17647059 | 0.16806723 | 0.1596639 | 0.1512605 | 0.1512605 | 0.1428571 | 0.1428571 | ... | 0.9243697 | 0.9243697 | 0.91596639 | 0.91596639 | 0.82352941 | 0.5210084 | 0.21848739 | 0.21848739 | 0.21008403 | 1 |
| i.vector.151 | 0.23076923 | 0.224358974 | 0.21794872 | 0.21153846 | 0.21153846 | 0.2051282 | 0.2051282 | 0.1923077 | 0.1858974 | 0.1858974 | ... | 0.3076923 | 0.3076923 | 0.35256410 | 0.24358974 | 0.31410256 | 0.3141026 | 0.31410256 | 0.31410256 | 0.30128205 | 1 |
| i.vector.191 | 0.20491803 | 0.204918033 | 0.19672131 | 0.18852459 | 0.18032787 | 0.1721311 | 0.1639344 | 0.1639344 | 0.1557377 | 0.1475410 | ... | 0.9098361 | 0.9098361 | 0.90983607 | 0.90163934 | 0.90163934 | 0.6639344 | 0.20491803 | 0.20491803 | 0.20491803 | 1 |
| i.vector.4 | 0.20000000 | 0.192000000 | 0.19200000 | 0.18400000 | 0.17600000 | 0.1680000 | 0.1680000 | 0.1600000 | 0.1520000 | 0.1440000 | ... | 0.8880000 | 0.5040000 | 0.00000000 | 0.02400000 | 0.04000000 | 0.1360000 | 0.21600000 | 0.21600000 | 0.20800000 | 0 |
| i.vector.2 | 0.20634921 | 0.198412698 | 0.19841270 | 0.19047619 | 0.18253968 | 0.1746032 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1587302 | ... | 0.9206349 | 0.6190476 | 0.02380952 | 0.03174603 | 0.03968254 | 0.1428571 | 0.22222222 | 0.21428571 | 0.21428571 | 0 |
| i.vector.110 | 0.19166667 | 0.183333333 | 0.17500000 | 0.17500000 | 0.16666667 | 0.1583333 | 0.1583333 | 0.1500000 | 0.1416667 | 0.1416667 | ... | 0.9166667 | 0.9166667 | 0.91666667 | 0.91666667 | 0.81666667 | 0.4166667 | 0.21666667 | 0.21666667 | 0.20833333 | 1 |
| i.vector.13 | 0.22580645 | 0.225806452 | 0.21935484 | 0.21290323 | 0.20645161 | 0.2000000 | 0.2000000 | 0.1870968 | 0.1870968 | 0.1806452 | ... | 0.2838710 | 0.2774194 | 0.26451613 | 0.25161290 | 0.23870968 | 0.2258065 | 0.21290323 | 0.20645161 | 0.19354839 | 0 |
test.set<-total.frame[-train.index,]
test.set
| r1.c1 | r1.c2 | r1.c3 | r1.c4 | r1.c5 | r1.c6 | r1.c7 | r1.c8 | r1.c9 | r1.c10 | ... | r60.c56 | r60.c57 | r60.c58 | r60.c59 | r60.c60 | r60.c61 | r60.c62 | r60.c63 | r60.c64 | class1.label | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| i.vector | 0.20769231 | 0.200000000 | 0.20000000 | 0.19230769 | 0.1846154 | 0.1769231 | 0.1692308 | 0.1692308 | 0.1615385 | 0.1538462 | ... | 0.8692308 | 0.50000000 | 0.007692308 | 0.03076923 | 0.03846154 | 0.146153846 | 0.22307692 | 0.22307692 | 0.215384615 | 0 |
| i.vector.6 | 0.19841270 | 0.198412698 | 0.19047619 | 0.18253968 | 0.1746032 | 0.1746032 | 0.1666667 | 0.1587302 | 0.1587302 | 0.1507937 | ... | 0.8888889 | 0.51587302 | 0.007936508 | 0.03174603 | 0.03968254 | 0.142857143 | 0.22222222 | 0.22222222 | 0.222222222 | 0 |
| i.vector.7 | 0.24161074 | 0.228187919 | 0.22147651 | 0.21476510 | 0.2147651 | 0.2080537 | 0.2013423 | 0.2013423 | 0.1946309 | 0.1879195 | ... | 0.2617450 | 0.26845638 | 0.268456376 | 0.26845638 | 0.26174497 | 0.261744966 | 0.26174497 | 0.25503356 | 0.241610738 | 0 |
| i.vector.8 | 0.21935484 | 0.212903226 | 0.21290323 | 0.20645161 | 0.2000000 | 0.1935484 | 0.1870968 | 0.1806452 | 0.1806452 | 0.1741935 | ... | 0.2838710 | 0.27741935 | 0.264516129 | 0.25161290 | 0.23870968 | 0.225806452 | 0.21290323 | 0.20645161 | 0.200000000 | 0 |
| i.vector.21 | 0.10897436 | 0.000000000 | 0.05128205 | 0.38461538 | 0.2243590 | 0.1538462 | 0.1730769 | 0.1666667 | 0.3525641 | 0.3974359 | ... | 0.7307692 | 0.51282051 | 0.282051282 | 0.30769231 | 0.35897436 | 0.410256410 | 0.20512821 | 0.03205128 | 0.006410256 | 0 |
| i.vector.28 | 0.08759124 | 0.087591241 | 0.08759124 | 0.08759124 | 0.1021898 | 0.1897810 | 0.2189781 | 0.2116788 | 0.2116788 | 0.2116788 | ... | 0.7299270 | 0.73722628 | 0.744525547 | 0.74452555 | 0.71532847 | 0.627737226 | 0.15328467 | 0.00000000 | 0.000000000 | 0 |
| i.vector.31 | 0.21600000 | 0.296000000 | 0.24800000 | 0.24800000 | 0.2400000 | 0.2400000 | 0.2400000 | 0.2320000 | 0.2320000 | 0.2240000 | ... | 0.8640000 | 0.84800000 | 0.808000000 | 0.44800000 | 0.00000000 | 0.000000000 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.40 | 0.02777778 | 0.263888889 | 0.20833333 | 0.20833333 | 0.2013889 | 0.2013889 | 0.2013889 | 0.1944444 | 0.1944444 | 0.1875000 | ... | 0.8958333 | 0.88888889 | 0.888888889 | 0.88194444 | 0.83333333 | 0.173611111 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.43 | 0.28846154 | 0.365384615 | 0.21794872 | 0.23076923 | 0.2371795 | 0.3012821 | 0.4230769 | 0.3717949 | 0.3205128 | 0.3012821 | ... | 0.1666667 | 0.07692308 | 0.128205128 | 0.07692308 | 0.02564103 | 0.006410256 | 0.00000000 | 0.00000000 | 0.000000000 | 0 |
| i.vector.45 | 0.11464968 | 0.006369427 | 0.07006369 | 0.40764331 | 0.2356688 | 0.1656051 | 0.1847134 | 0.1783439 | 0.3757962 | 0.4140127 | ... | 0.3439490 | 0.51592357 | 0.535031847 | 0.30573248 | 0.29299363 | 0.114649682 | 0.05732484 | 0.03184713 | 0.000000000 | 0 |
| i.vector.46 | 0.10191083 | 0.006369427 | 0.05095541 | 0.37579618 | 0.2165605 | 0.1528662 | 0.1656051 | 0.1656051 | 0.3439490 | 0.3885350 | ... | 0.4840764 | 0.51592357 | 0.350318471 | 0.42038217 | 0.21656051 | 0.484076433 | 0.50318471 | 0.05095541 | 0.000000000 | 0 |
| image.vector1 | 0.11612903 | 0.006451613 | 0.05806452 | 0.40000000 | 0.2322581 | 0.1612903 | 0.1806452 | 0.1741935 | 0.3677419 | 0.4129032 | ... | 0.6645161 | 0.70967742 | 0.380645161 | 0.26451613 | 0.49032258 | 0.419354839 | 0.53548387 | 0.55483871 | 0.374193548 | 1 |
| i.vector.121 | 0.23178808 | 0.225165563 | 0.22516556 | 0.21854305 | 0.2119205 | 0.2052980 | 0.1986755 | 0.1920530 | 0.1920530 | 0.1854305 | ... | 0.2516556 | 0.21192053 | 0.172185430 | 0.35761589 | 0.31125828 | 0.317880795 | 0.31788079 | 0.31788079 | 0.317880795 | 1 |
| i.vector.141 | 0.22516556 | 0.218543046 | 0.21192053 | 0.21192053 | 0.2052980 | 0.1986755 | 0.1920530 | 0.1854305 | 0.1788079 | 0.1721854 | ... | 0.3178808 | 0.21854305 | 0.165562914 | 0.28476821 | 0.31788079 | 0.317880795 | 0.31788079 | 0.31788079 | 0.317880795 | 1 |
| i.vector.231 | 0.20491803 | 0.196721311 | 0.18852459 | 0.17213115 | 0.1721311 | 0.1639344 | 0.1639344 | 0.1557377 | 0.1475410 | 0.1393443 | ... | 0.9098361 | 0.90983607 | 0.909836066 | 0.89344262 | 0.90163934 | 0.614754098 | 0.21311475 | 0.21311475 | 0.204918033 | 1 |
| i.vector.341 | 0.02739726 | 0.273972603 | 0.21917808 | 0.21232877 | 0.2123288 | 0.2123288 | 0.2054795 | 0.1986301 | 0.1986301 | 0.1986301 | ... | 0.8150685 | 0.89726027 | 0.890410959 | 0.89041096 | 0.88356164 | 0.849315068 | 0.30136986 | 0.00000000 | 0.000000000 | 1 |
| i.vector.351 | 0.02962963 | 0.266666667 | 0.20000000 | 0.20740741 | 0.2000000 | 0.2000000 | 0.1925926 | 0.2000000 | 0.1925926 | 0.1851852 | ... | 0.9037037 | 0.90370370 | 0.903703704 | 0.90370370 | 0.89629630 | 0.888888889 | 0.60740741 | 0.00000000 | 0.000000000 | 1 |
| i.vector.421 | 0.28846154 | 0.275641026 | 0.27564103 | 0.26923077 | 0.2564103 | 0.2500000 | 0.2435897 | 0.2371795 | 0.2307692 | 0.2243590 | ... | 0.1282051 | 0.12820513 | 0.096153846 | 0.12179487 | 0.09615385 | 0.192307692 | 0.30128205 | 0.29487179 | 0.301282051 | 1 |
| i.vector.431 | 0.30128205 | 0.378205128 | 0.23076923 | 0.23717949 | 0.2435897 | 0.3141026 | 0.4358974 | 0.3846154 | 0.3333333 | 0.3141026 | ... | 0.2500000 | 0.23717949 | 0.134615385 | 0.08974359 | 0.03205128 | 0.006410256 | 0.00000000 | 0.00000000 | 0.000000000 | 1 |
| i.vector.481 | 0.20325203 | 0.195121951 | 0.18699187 | 0.18699187 | 0.1788618 | 0.1788618 | 0.1707317 | 0.1626016 | 0.1626016 | 0.1544715 | ... | 0.9186992 | 0.67479675 | 0.008130081 | 0.03252033 | 0.04065041 | 0.138211382 | 0.21138211 | 0.21138211 | 0.211382114 | 1 |
Next we train the classifiers, varying the number of hidden nodes:
library(neuralnet)
myform <- as.formula(paste('class1.label ~ ',paste(names(training.set[!names(training.set) %in% 'class1.label']), collapse = ' + ')))
face.classifier.3 <- neuralnet(myform, training.set, hidden = 3, rep=100, linear.output = FALSE, threshold = 0.1)
summary(face.classifier.3)
Length Class Mode call 7 -none- call response 80 -none- numeric covariate 307200 -none- numeric model.list 2 -none- list err.fct 1 -none- function act.fct 1 -none- function linear.output 1 -none- logical data 3841 data.frame list exclude 0 -none- NULL net.result 100 -none- list weights 100 -none- list generalized.weights 100 -none- list startweights 100 -none- list result.matrix 1153000 -none- numeric
face.classifier.5 <- neuralnet(myform, training.set, hidden = 5, rep=100, linear.output = FALSE, threshold = 0.1)
summary(face.classifier.5)
Length Class Mode call 7 -none- call response 80 -none- numeric covariate 307200 -none- numeric model.list 2 -none- list err.fct 1 -none- function act.fct 1 -none- function linear.output 1 -none- logical data 3841 data.frame list exclude 0 -none- NULL net.result 100 -none- list weights 100 -none- list generalized.weights 100 -none- list startweights 100 -none- list result.matrix 1921400 -none- numeric
face.classifier.7 <- neuralnet(myform, training.set, hidden = 7, rep=100, linear.output = FALSE, threshold = 0.1)
summary(face.classifier.7)
Length Class Mode call 7 -none- call response 80 -none- numeric covariate 307200 -none- numeric model.list 2 -none- list err.fct 1 -none- function act.fct 1 -none- function linear.output 1 -none- logical data 3841 data.frame list exclude 0 -none- NULL net.result 100 -none- list weights 100 -none- list generalized.weights 100 -none- list startweights 100 -none- list result.matrix 2689800 -none- numeric
face.classifier.9 <- neuralnet(myform, training.set, hidden = 9, rep=100, linear.output = FALSE, threshold = 0.1)
summary(face.classifier.9)
Length Class Mode call 7 -none- call response 80 -none- numeric covariate 307200 -none- numeric model.list 2 -none- list err.fct 1 -none- function act.fct 1 -none- function linear.output 1 -none- logical data 3841 data.frame list exclude 0 -none- NULL net.result 100 -none- list weights 100 -none- list generalized.weights 100 -none- list startweights 100 -none- list result.matrix 3458200 -none- numeric
face.classifier.11 <- neuralnet(myform, training.set, hidden = 11, rep=100, linear.output = FALSE, threshold = 0.1)
summary(face.classifier.11)
Length Class Mode call 7 -none- call response 80 -none- numeric covariate 307200 -none- numeric model.list 2 -none- list err.fct 1 -none- function act.fct 1 -none- function linear.output 1 -none- logical data 3841 data.frame list exclude 0 -none- NULL net.result 100 -none- list weights 100 -none- list generalized.weights 100 -none- list startweights 100 -none- list result.matrix 4226600 -none- numeric
Next we use the models we have built to make predictions on the test set:
class.index<-length(test.set)
face.prediction.3<-compute(face.classifier.3,test.set[,-class.index])
face.prediction.3$net.result
| i.vector | 0.05375460 |
|---|---|
| i.vector.6 | 0.05375460 |
| i.vector.7 | 0.05375460 |
| i.vector.8 | 0.89221862 |
| i.vector.21 | 0.05375460 |
| i.vector.28 | 0.05375460 |
| i.vector.31 | 0.05375460 |
| i.vector.40 | 0.05375460 |
| i.vector.43 | 0.05460419 |
| i.vector.45 | 0.05375460 |
| i.vector.46 | 0.05375460 |
| image.vector1 | 0.89221862 |
| i.vector.121 | 0.89221862 |
| i.vector.141 | 0.89221862 |
| i.vector.231 | 0.89221862 |
| i.vector.341 | 0.89221862 |
| i.vector.351 | 0.89221862 |
| i.vector.421 | 0.07080363 |
| i.vector.431 | 0.89221862 |
| i.vector.481 | 0.89221862 |
face.prediction.5<-compute(face.classifier.5,test.set[,-class.index])
face.prediction.5$net.result
| i.vector | 0.06708747 |
|---|---|
| i.vector.6 | 0.06613341 |
| i.vector.7 | 0.06613332 |
| i.vector.8 | 0.06626713 |
| i.vector.21 | 0.06614828 |
| i.vector.28 | 0.06613332 |
| i.vector.31 | 0.06613335 |
| i.vector.40 | 0.06613332 |
| i.vector.43 | 0.51652668 |
| i.vector.45 | 0.06613746 |
| i.vector.46 | 0.06620899 |
| image.vector1 | 0.95585924 |
| i.vector.121 | 0.95581684 |
| i.vector.141 | 0.95573193 |
| i.vector.231 | 0.95563006 |
| i.vector.341 | 0.95585924 |
| i.vector.351 | 0.95585924 |
| i.vector.421 | 0.94444754 |
| i.vector.431 | 0.95583787 |
| i.vector.481 | 0.95585924 |
face.prediction.7<-compute(face.classifier.7,test.set[,-class.index])
face.prediction.7$net.result
| i.vector | 0.007259566 |
|---|---|
| i.vector.6 | 0.005776780 |
| i.vector.7 | 0.003738080 |
| i.vector.8 | 0.035216561 |
| i.vector.21 | 0.029349089 |
| i.vector.28 | 0.003738107 |
| i.vector.31 | 0.003738038 |
| i.vector.40 | 0.003738041 |
| i.vector.43 | 0.279152314 |
| i.vector.45 | 0.003739558 |
| i.vector.46 | 0.004209081 |
| image.vector1 | 0.947813500 |
| i.vector.121 | 0.940423054 |
| i.vector.141 | 0.962253749 |
| i.vector.231 | 0.707958860 |
| i.vector.341 | 0.969053064 |
| i.vector.351 | 0.967021327 |
| i.vector.421 | 0.968997771 |
| i.vector.431 | 0.967209372 |
| i.vector.481 | 0.969053048 |
face.prediction.9<-compute(face.classifier.9, test.set[,-class.index])
face.prediction.9$net.result
| i.vector | 1.610229e-04 |
|---|---|
| i.vector.6 | 1.846180e-05 |
| i.vector.7 | 1.095648e-04 |
| i.vector.8 | 2.580134e-02 |
| i.vector.21 | 1.108791e-04 |
| i.vector.28 | 1.795596e-05 |
| i.vector.31 | 1.830093e-05 |
| i.vector.40 | 1.795683e-05 |
| i.vector.43 | 7.442605e-03 |
| i.vector.45 | 1.268788e-04 |
| i.vector.46 | 1.132006e-04 |
| image.vector1 | 9.554436e-01 |
| i.vector.121 | 9.553886e-01 |
| i.vector.141 | 9.554247e-01 |
| i.vector.231 | 9.554339e-01 |
| i.vector.341 | 9.554436e-01 |
| i.vector.351 | 9.554436e-01 |
| i.vector.421 | 8.136309e-01 |
| i.vector.431 | 9.554120e-01 |
| i.vector.481 | 9.222663e-01 |
face.prediction.11<-compute(face.classifier.11,test.set[,-class.index])
face.prediction.11$net.result
| i.vector | 0.20132563 |
|---|---|
| i.vector.6 | 0.03375570 |
| i.vector.7 | 0.03375610 |
| i.vector.8 | 0.34779632 |
| i.vector.21 | 0.25306999 |
| i.vector.28 | 0.03375542 |
| i.vector.31 | 0.03376119 |
| i.vector.40 | 0.03404698 |
| i.vector.43 | 0.03436065 |
| i.vector.45 | 0.37902962 |
| i.vector.46 | 0.24580260 |
| image.vector1 | 0.98332955 |
| i.vector.121 | 0.33759202 |
| i.vector.141 | 0.33413828 |
| i.vector.231 | 0.98271765 |
| i.vector.341 | 0.98322664 |
| i.vector.351 | 0.98332158 |
| i.vector.421 | 0.11258902 |
| i.vector.431 | 0.98333099 |
| i.vector.481 | 0.98325884 |
classifications.3<-ifelse(face.prediction.3$net.result>0.5,1,0)
classifications.3
| i.vector | 0 |
|---|---|
| i.vector.6 | 0 |
| i.vector.7 | 0 |
| i.vector.8 | 1 |
| i.vector.21 | 0 |
| i.vector.28 | 0 |
| i.vector.31 | 0 |
| i.vector.40 | 0 |
| i.vector.43 | 0 |
| i.vector.45 | 0 |
| i.vector.46 | 0 |
| image.vector1 | 1 |
| i.vector.121 | 1 |
| i.vector.141 | 1 |
| i.vector.231 | 1 |
| i.vector.341 | 1 |
| i.vector.351 | 1 |
| i.vector.421 | 0 |
| i.vector.431 | 1 |
| i.vector.481 | 1 |
classifications.5<-ifelse(face.prediction.5$net.result>0.5,1,0)
classifications.5
| i.vector | 0 |
|---|---|
| i.vector.6 | 0 |
| i.vector.7 | 0 |
| i.vector.8 | 0 |
| i.vector.21 | 0 |
| i.vector.28 | 0 |
| i.vector.31 | 0 |
| i.vector.40 | 0 |
| i.vector.43 | 1 |
| i.vector.45 | 0 |
| i.vector.46 | 0 |
| image.vector1 | 1 |
| i.vector.121 | 1 |
| i.vector.141 | 1 |
| i.vector.231 | 1 |
| i.vector.341 | 1 |
| i.vector.351 | 1 |
| i.vector.421 | 1 |
| i.vector.431 | 1 |
| i.vector.481 | 1 |
classifications.7<-ifelse(face.prediction.7$net.result>0.5,1,0)
classifications.7
| i.vector | 0 |
|---|---|
| i.vector.6 | 0 |
| i.vector.7 | 0 |
| i.vector.8 | 0 |
| i.vector.21 | 0 |
| i.vector.28 | 0 |
| i.vector.31 | 0 |
| i.vector.40 | 0 |
| i.vector.43 | 0 |
| i.vector.45 | 0 |
| i.vector.46 | 0 |
| image.vector1 | 1 |
| i.vector.121 | 1 |
| i.vector.141 | 1 |
| i.vector.231 | 1 |
| i.vector.341 | 1 |
| i.vector.351 | 1 |
| i.vector.421 | 1 |
| i.vector.431 | 1 |
| i.vector.481 | 1 |
classifications.9<-ifelse(face.prediction.9$net.result>0.5,1,0)
classifications.9
| i.vector | 0 |
|---|---|
| i.vector.6 | 0 |
| i.vector.7 | 0 |
| i.vector.8 | 0 |
| i.vector.21 | 0 |
| i.vector.28 | 0 |
| i.vector.31 | 0 |
| i.vector.40 | 0 |
| i.vector.43 | 0 |
| i.vector.45 | 0 |
| i.vector.46 | 0 |
| image.vector1 | 1 |
| i.vector.121 | 1 |
| i.vector.141 | 1 |
| i.vector.231 | 1 |
| i.vector.341 | 1 |
| i.vector.351 | 1 |
| i.vector.421 | 1 |
| i.vector.431 | 1 |
| i.vector.481 | 1 |
classifications.11<-ifelse(face.prediction.11$net.result>0.5,1,-1)
classifications.11
| i.vector | -1 |
|---|---|
| i.vector.6 | -1 |
| i.vector.7 | -1 |
| i.vector.8 | -1 |
| i.vector.21 | -1 |
| i.vector.28 | -1 |
| i.vector.31 | -1 |
| i.vector.40 | -1 |
| i.vector.43 | -1 |
| i.vector.45 | -1 |
| i.vector.46 | -1 |
| image.vector1 | 1 |
| i.vector.121 | -1 |
| i.vector.141 | -1 |
| i.vector.231 | 1 |
| i.vector.341 | 1 |
| i.vector.351 | 1 |
| i.vector.421 | -1 |
| i.vector.431 | 1 |
| i.vector.481 | 1 |
Then we show the confusion matrix for all 5 classifiers:
table(test.set[,class.index],classifications.3)
classifications.3
0 1
0 10 1
1 1 8
table(test.set[,class.index],classifications.5)
classifications.5
0 1
0 10 1
1 0 9
table(test.set[,class.index],classifications.7)
classifications.7
0 1
0 11 0
1 0 9
table(test.set[,class.index],classifications.9)
classifications.9
0 1
0 11 0
1 0 9
table(test.set[,class.index],classifications.11)
classifications.11
-1 1
0 11 0
1 3 6
We summarize the accuracy results of all classifiers in a table:
accuracy.vector<-c(0.5, 0.95, 0.5, 1, 1)
hidden.vector<-c(3, 5, 7, 9, 11)
accuracy.frame<-data.frame(as.data.frame(accuracy.vector))
hidden.frame<-data.frame(as.data.frame(hidden.vector))
final.frame<-cbind(accuracy.frame, hidden.frame)
names(final.frame)<-c("Accuracy", "Hidden Nodes")
final.frame
| Accuracy | Hidden Nodes |
|---|---|
| 0.50 | 3 |
| 0.95 | 5 |
| 0.50 | 7 |
| 1.00 | 9 |
| 1.00 | 11 |